{"action":"closed","issue":{"url":"https://api.github.com/repos/plicease/AnyEvent-WebSocket-Client/issues/27","repository_url":"https://api.github.com/repos/plicease/AnyEvent-WebSocket-Client","labels_url":"https://api.github.com/repos/plicease/AnyEvent-WebSocket-Client/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/plicease/AnyEvent-WebSocket-Client/issues/27/comments","events_url":"https://api.github.com/repos/plicease/AnyEvent-WebSocket-Client/issues/27/events","html_url":"https://github.com/plicease/AnyEvent-WebSocket-Client/issues/27","id":184929052,"number":27,"title":"sub protocols?","user":{"login":"plicease","id":354009,"avatar_url":"https://avatars.githubusercontent.com/u/354009?v=3","gravatar_id":"","url":"https://api.github.com/users/plicease","html_url":"https://github.com/plicease","followers_url":"https://api.github.com/users/plicease/followers","following_url":"https://api.github.com/users/plicease/following{/other_user}","gists_url":"https://api.github.com/users/plicease/gists{/gist_id}","starred_url":"https://api.github.com/users/plicease/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plicease/subscriptions","organizations_url":"https://api.github.com/users/plicease/orgs","repos_url":"https://api.github.com/users/plicease/repos","events_url":"https://api.github.com/users/plicease/events{/privacy}","received_events_url":"https://api.github.com/users/plicease/received_events","type":"User","site_admin":false},"labels":[{"id":54188214,"url":"https://api.github.com/repos/plicease/AnyEvent-WebSocket-Client/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-24T19:13:49Z","updated_at":"2016-11-03T20:08:38Z","closed_at":"2016-11-03T20:08:38Z","body":"This came in from an email from a user.\n\n```\nIf you use JavaScript (Firefox browser) specified subprotocol\nis very simple:\nvar mySocket = new WebSocket('wss://www.example.com', 'my-subprotocol');\nor:\nvar mySocket = new WebSocket('wss://www.example.com', ['my-subprotocol',my-subprotocol2']);\n\nWhe I use Protocol::WebSocket::Client, I must use this \"hack\":\nmy $client = Protocol::WebSocket::Client->new(\n   url => 'wss://www.example.com',\n   version => '13'\n);\n$client->{hs}->req->fields->{'sec-websocket-protocol'\n}='my-subprotocol';\n\nWhen I use AnyEvent::WebSocket::Client, I don't know how specify\nsubprotocol.\n\n```\n"}}
{"actor":{"display_login":"plicease"}}