{"action":"created","issue":{"url":"https://api.github.com/repos/vinniefalco/Beast/issues/25","repository_url":"https://api.github.com/repos/vinniefalco/Beast","labels_url":"https://api.github.com/repos/vinniefalco/Beast/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/vinniefalco/Beast/issues/25/comments","events_url":"https://api.github.com/repos/vinniefalco/Beast/issues/25/events","html_url":"https://github.com/vinniefalco/Beast/issues/25","id":160423416,"number":25,"title":"Wikipedia article seems to consider this to have websocket server functionality","user":{"login":"ignasg","id":12294040,"avatar_url":"https://avatars.githubusercontent.com/u/12294040?v=3","gravatar_id":"","url":"https://api.github.com/users/ignasg","html_url":"https://github.com/ignasg","followers_url":"https://api.github.com/users/ignasg/followers","following_url":"https://api.github.com/users/ignasg/following{/other_user}","gists_url":"https://api.github.com/users/ignasg/gists{/gist_id}","starred_url":"https://api.github.com/users/ignasg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignasg/subscriptions","organizations_url":"https://api.github.com/users/ignasg/orgs","repos_url":"https://api.github.com/users/ignasg/repos","events_url":"https://api.github.com/users/ignasg/events{/privacy}","received_events_url":"https://api.github.com/users/ignasg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-15T13:34:24Z","updated_at":"2016-06-15T15:16:33Z","closed_at":null,"body":"https://en.wikipedia.org/wiki/Comparison_of_WebSocket_implementations\r\nAs I only see this is a client library, probably the wikipedia article needs to be updated\r\n"},"comment":{"url":"https://api.github.com/repos/vinniefalco/Beast/issues/comments/226219881","html_url":"https://github.com/vinniefalco/Beast/issues/25#issuecomment-226219881","issue_url":"https://api.github.com/repos/vinniefalco/Beast/issues/25","id":226219881,"user":{"login":"vinniefalco","id":1503976,"avatar_url":"https://avatars.githubusercontent.com/u/1503976?v=3","gravatar_id":"","url":"https://api.github.com/users/vinniefalco","html_url":"https://github.com/vinniefalco","followers_url":"https://api.github.com/users/vinniefalco/followers","following_url":"https://api.github.com/users/vinniefalco/following{/other_user}","gists_url":"https://api.github.com/users/vinniefalco/gists{/gist_id}","starred_url":"https://api.github.com/users/vinniefalco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinniefalco/subscriptions","organizations_url":"https://api.github.com/users/vinniefalco/orgs","repos_url":"https://api.github.com/users/vinniefalco/repos","events_url":"https://api.github.com/users/vinniefalco/events{/privacy}","received_events_url":"https://api.github.com/users/vinniefalco/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T15:16:33Z","updated_at":"2016-06-15T15:16:33Z","body":"Where did you get the idea that Beast only offers a WebSocket client? It has both. We use Beast in rippled, which exposes a WebSocket server for clients to issue requests:\r\nhttps://github.com/ripple/rippled/blob/develop/src/ripple/server/impl/SSLWSPeer.h#L48\r\n\r\nTo implement a server, just call `beast::websocket::stream::accept` on the socket used to receive the incoming connection, and it will read the Upgrade request and respond to it appropriately:\r\nhttps://github.com/vinniefalco/Beast/blob/999e2fa0318b5982736d3ea01a418770ea802671/include/beast/websocket/stream.hpp#L312\r\n\r\nThe Beast Autobahn|Testsuite report shows both the synchronous and asynchronous modes of operation, source code for those WebSocket servers are here:\r\nhttps://github.com/vinniefalco/Beast/blob/999e2fa0318b5982736d3ea01a418770ea802671/test/websocket/websocket_async_echo_peer.hpp\r\nhttps://github.com/vinniefalco/Beast/blob/999e2fa0318b5982736d3ea01a418770ea802671/test/websocket/websocket_sync_echo_peer.hpp\r\n\r\nHope this helps!\r\n"}}
{"actor":{"display_login":"vinniefalco"}}