{"action":"created","issue":{"url":"https://api.github.com/repos/http-kit/http-kit/issues/64","repository_url":"https://api.github.com/repos/http-kit/http-kit","labels_url":"https://api.github.com/repos/http-kit/http-kit/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/http-kit/http-kit/issues/64/comments","events_url":"https://api.github.com/repos/http-kit/http-kit/issues/64/events","html_url":"https://github.com/http-kit/http-kit/issues/64","id":15985235,"number":64,"title":"WebSocket subprotocol support","user":{"login":"cgmartin","id":490760,"avatar_url":"https://avatars.githubusercontent.com/u/490760?v=3","gravatar_id":"","url":"https://api.github.com/users/cgmartin","html_url":"https://github.com/cgmartin","followers_url":"https://api.github.com/users/cgmartin/followers","following_url":"https://api.github.com/users/cgmartin/following{/other_user}","gists_url":"https://api.github.com/users/cgmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/cgmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgmartin/subscriptions","organizations_url":"https://api.github.com/users/cgmartin/orgs","repos_url":"https://api.github.com/users/cgmartin/repos","events_url":"https://api.github.com/users/cgmartin/events{/privacy}","received_events_url":"https://api.github.com/users/cgmartin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2013-06-25T15:44:19Z","updated_at":"2016-12-21T05:38:07Z","closed_at":"2013-06-26T20:32:11Z","body":"Is there a way currently to specify a WebSocket subprotocol during the connection handshake? I would like to define a list of subprotocols that can be sent back in a `Sec-WebSocket-Protocol` header:\n\nhttp://tools.ietf.org/html/rfc6455#section-1.3\n\n```\nAdditional header fields are used to select options in the WebSocket\nProtocol.  Typical options available in this version are the\nsubprotocol selector (|Sec-WebSocket-Protocol|), list of extensions\nsupport by the client (|Sec-WebSocket-Extensions|), |Origin| header\nfield, etc.  The |Sec-WebSocket-Protocol| request-header field can be\nused to indicate what subprotocols (application-level protocols\nlayered over the WebSocket Protocol) are acceptable to the client.\nThe server selects one or none of the acceptable protocols and echoes\nthat value in its handshake to indicate that it has selected that\nprotocol.\n\nSec-WebSocket-Protocol: chat\n```\n\nAlso to note that might be of interest: I've created a HTTP Kit websocket handler for the WAMP subprotocol at http://cljwamp.us and I've been really been enjoying using HTTP Kit - thanks for sharing it!\n"},"comment":{"url":"https://api.github.com/repos/http-kit/http-kit/issues/comments/268440085","html_url":"https://github.com/http-kit/http-kit/issues/64#issuecomment-268440085","issue_url":"https://api.github.com/repos/http-kit/http-kit/issues/64","id":268440085,"user":{"login":"brandonbloom","id":119164,"avatar_url":"https://avatars.githubusercontent.com/u/119164?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonbloom","html_url":"https://github.com/brandonbloom","followers_url":"https://api.github.com/users/brandonbloom/followers","following_url":"https://api.github.com/users/brandonbloom/following{/other_user}","gists_url":"https://api.github.com/users/brandonbloom/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonbloom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonbloom/subscriptions","organizations_url":"https://api.github.com/users/brandonbloom/orgs","repos_url":"https://api.github.com/users/brandonbloom/repos","events_url":"https://api.github.com/users/brandonbloom/events{/privacy}","received_events_url":"https://api.github.com/users/brandonbloom/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T05:38:07Z","updated_at":"2016-12-21T05:38:07Z","body":"I came across another use-case for customizing the handshake: Sending a \"Set-Cookie\" header. Would be nice to have some way to customize the handshake headers."}}
{"actor":{"display_login":"brandonbloom"}}