{"action":"created","issue":{"url":"https://api.github.com/repos/Devristo/phpws/issues/58","labels_url":"https://api.github.com/repos/Devristo/phpws/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/Devristo/phpws/issues/58/comments","events_url":"https://api.github.com/repos/Devristo/phpws/issues/58/events","html_url":"https://github.com/Devristo/phpws/issues/58","id":62780429,"number":58,"title":"no event when server closes connection","user":{"login":"mark-ingles","id":10281890,"avatar_url":"https://avatars.githubusercontent.com/u/10281890?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-ingles","html_url":"https://github.com/mark-ingles","followers_url":"https://api.github.com/users/mark-ingles/followers","following_url":"https://api.github.com/users/mark-ingles/following{/other_user}","gists_url":"https://api.github.com/users/mark-ingles/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-ingles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-ingles/subscriptions","organizations_url":"https://api.github.com/users/mark-ingles/orgs","repos_url":"https://api.github.com/users/mark-ingles/repos","events_url":"https://api.github.com/users/mark-ingles/events{/privacy}","received_events_url":"https://api.github.com/users/mark-ingles/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-18T19:38:08Z","updated_at":"2015-03-18T21:34:17Z","closed_at":"2015-03-18T21:34:17Z","body":"My websocket server will sometimes restart and my phpws client will end.\r\nI think there should be an event emitted so I can react to it.\r\nIn Client/WebSocket.php line 114 (inside $stream->on(\"close\"'s function) add:\r\n$that->emit(\"closed\");\r\n\r\nThat would let me react to it in my app. If there's a better way, I'm sorry that I didn't see it.\r\n\r\nThanks,\r\nMark Ingles\r\n"},"comment":{"url":"https://api.github.com/repos/Devristo/phpws/issues/comments/83190143","html_url":"https://github.com/Devristo/phpws/issues/58#issuecomment-83190143","issue_url":"https://api.github.com/repos/Devristo/phpws/issues/58","id":83190143,"user":{"login":"mark-ingles","id":10281890,"avatar_url":"https://avatars.githubusercontent.com/u/10281890?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-ingles","html_url":"https://github.com/mark-ingles","followers_url":"https://api.github.com/users/mark-ingles/followers","following_url":"https://api.github.com/users/mark-ingles/following{/other_user}","gists_url":"https://api.github.com/users/mark-ingles/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-ingles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-ingles/subscriptions","organizations_url":"https://api.github.com/users/mark-ingles/orgs","repos_url":"https://api.github.com/users/mark-ingles/repos","events_url":"https://api.github.com/users/mark-ingles/events{/privacy}","received_events_url":"https://api.github.com/users/mark-ingles/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T21:34:17Z","updated_at":"2015-03-18T21:34:17Z","body":"sorry - react is closing everything - bad request - closing issue"}}