{"action":"created","issue":{"url":"https://api.github.com/repos/websockets/ws/issues/1088","repository_url":"https://api.github.com/repos/websockets/ws","labels_url":"https://api.github.com/repos/websockets/ws/issues/1088/labels{/name}","comments_url":"https://api.github.com/repos/websockets/ws/issues/1088/comments","events_url":"https://api.github.com/repos/websockets/ws/issues/1088/events","html_url":"https://github.com/websockets/ws/issues/1088","id":224635719,"number":1088,"title":"Notify when client closes a connection from server","user":{"login":"nodesocket","id":523312,"avatar_url":"https://avatars1.githubusercontent.com/u/523312?v=3","gravatar_id":"","url":"https://api.github.com/users/nodesocket","html_url":"https://github.com/nodesocket","followers_url":"https://api.github.com/users/nodesocket/followers","following_url":"https://api.github.com/users/nodesocket/following{/other_user}","gists_url":"https://api.github.com/users/nodesocket/gists{/gist_id}","starred_url":"https://api.github.com/users/nodesocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodesocket/subscriptions","organizations_url":"https://api.github.com/users/nodesocket/orgs","repos_url":"https://api.github.com/users/nodesocket/repos","events_url":"https://api.github.com/users/nodesocket/events{/privacy}","received_events_url":"https://api.github.com/users/nodesocket/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-27T00:23:40Z","updated_at":"2017-04-27T06:34:29Z","closed_at":"2017-04-27T06:34:29Z","body":"Is there a way to notify from the server when a client closes a connection?\r\n\r\nTried:\r\n\r\n````javascript\r\nwss.on('close', () => {\r\n    console.info(color.green(`Current Connections: ${wss.clients.size}`));\r\n});\r\n````\r\n\r\nBut that did not work."},"comment":{"url":"https://api.github.com/repos/websockets/ws/issues/comments/297624685","html_url":"https://github.com/websockets/ws/issues/1088#issuecomment-297624685","issue_url":"https://api.github.com/repos/websockets/ws/issues/1088","id":297624685,"user":{"login":"nodesocket","id":523312,"avatar_url":"https://avatars1.githubusercontent.com/u/523312?v=3","gravatar_id":"","url":"https://api.github.com/users/nodesocket","html_url":"https://github.com/nodesocket","followers_url":"https://api.github.com/users/nodesocket/followers","following_url":"https://api.github.com/users/nodesocket/following{/other_user}","gists_url":"https://api.github.com/users/nodesocket/gists{/gist_id}","starred_url":"https://api.github.com/users/nodesocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodesocket/subscriptions","organizations_url":"https://api.github.com/users/nodesocket/orgs","repos_url":"https://api.github.com/users/nodesocket/repos","events_url":"https://api.github.com/users/nodesocket/events{/privacy}","received_events_url":"https://api.github.com/users/nodesocket/received_events","type":"User","site_admin":false},"created_at":"2017-04-27T06:34:29Z","updated_at":"2017-04-27T06:34:29Z","body":"Worked. Thanks."}}
{"actor":{"display_login":"nodesocket"}}