{"action":"created","issue":{"url":"https://api.github.com/repos/websockets/ws/issues/584","labels_url":"https://api.github.com/repos/websockets/ws/issues/584/labels{/name}","comments_url":"https://api.github.com/repos/websockets/ws/issues/584/comments","events_url":"https://api.github.com/repos/websockets/ws/issues/584/events","html_url":"https://github.com/websockets/ws/issues/584","id":106679402,"number":584,"title":"Why socket.setTimeout(0)?","user":{"login":"binarykitchen","id":177641,"avatar_url":"https://avatars.githubusercontent.com/u/177641?v=3","gravatar_id":"","url":"https://api.github.com/users/binarykitchen","html_url":"https://github.com/binarykitchen","followers_url":"https://api.github.com/users/binarykitchen/followers","following_url":"https://api.github.com/users/binarykitchen/following{/other_user}","gists_url":"https://api.github.com/users/binarykitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/binarykitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarykitchen/subscriptions","organizations_url":"https://api.github.com/users/binarykitchen/orgs","repos_url":"https://api.github.com/users/binarykitchen/repos","events_url":"https://api.github.com/users/binarykitchen/events{/privacy}","received_events_url":"https://api.github.com/users/binarykitchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-16T01:37:50Z","updated_at":"2015-09-16T03:13:16Z","closed_at":null,"body":"RFC declare that web sockets should timeout after a certain period of inactivity."},"comment":{"url":"https://api.github.com/repos/websockets/ws/issues/comments/140613520","html_url":"https://github.com/websockets/ws/issues/584#issuecomment-140613520","issue_url":"https://api.github.com/repos/websockets/ws/issues/584","id":140613520,"user":{"login":"nkzawa","id":775227,"avatar_url":"https://avatars.githubusercontent.com/u/775227?v=3","gravatar_id":"","url":"https://api.github.com/users/nkzawa","html_url":"https://github.com/nkzawa","followers_url":"https://api.github.com/users/nkzawa/followers","following_url":"https://api.github.com/users/nkzawa/following{/other_user}","gists_url":"https://api.github.com/users/nkzawa/gists{/gist_id}","starred_url":"https://api.github.com/users/nkzawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkzawa/subscriptions","organizations_url":"https://api.github.com/users/nkzawa/orgs","repos_url":"https://api.github.com/users/nkzawa/repos","events_url":"https://api.github.com/users/nkzawa/events{/privacy}","received_events_url":"https://api.github.com/users/nkzawa/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T03:13:16Z","updated_at":"2015-09-16T03:13:16Z","body":"So I think that's the reason of  `socket.setTimeout(0)`, there is no timeout of inactivity except ping pong. You need to call `ws.ping()` manually, though WebSocket on browser doesn't have `ping`."}}