{"action":"created","issue":{"url":"https://api.github.com/repos/ghedipunk/PHP-Websockets/issues/106","repository_url":"https://api.github.com/repos/ghedipunk/PHP-Websockets","labels_url":"https://api.github.com/repos/ghedipunk/PHP-Websockets/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/ghedipunk/PHP-Websockets/issues/106/comments","events_url":"https://api.github.com/repos/ghedipunk/PHP-Websockets/issues/106/events","html_url":"https://github.com/ghedipunk/PHP-Websockets/issues/106","id":259150999,"number":106,"title":"Reconnect user on page refresh","user":{"login":"vikasvyas946","id":28801072,"avatar_url":"https://avatars0.githubusercontent.com/u/28801072?v=4","gravatar_id":"","url":"https://api.github.com/users/vikasvyas946","html_url":"https://github.com/vikasvyas946","followers_url":"https://api.github.com/users/vikasvyas946/followers","following_url":"https://api.github.com/users/vikasvyas946/following{/other_user}","gists_url":"https://api.github.com/users/vikasvyas946/gists{/gist_id}","starred_url":"https://api.github.com/users/vikasvyas946/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikasvyas946/subscriptions","organizations_url":"https://api.github.com/users/vikasvyas946/orgs","repos_url":"https://api.github.com/users/vikasvyas946/repos","events_url":"https://api.github.com/users/vikasvyas946/events{/privacy}","received_events_url":"https://api.github.com/users/vikasvyas946/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-20T12:49:33Z","updated_at":"2017-09-20T15:45:46Z","closed_at":null,"author_association":"NONE","body":"Hi \r\ni want to ask one thing that if user refresh or reload page then it will automatically connect to websocket and continue to chat because currently if i refresh the page user will disconnect and connect with new connection."},"comment":{"url":"https://api.github.com/repos/ghedipunk/PHP-Websockets/issues/comments/330894261","html_url":"https://github.com/ghedipunk/PHP-Websockets/issues/106#issuecomment-330894261","issue_url":"https://api.github.com/repos/ghedipunk/PHP-Websockets/issues/106","id":330894261,"user":{"login":"ghedipunk","id":249662,"avatar_url":"https://avatars2.githubusercontent.com/u/249662?v=4","gravatar_id":"","url":"https://api.github.com/users/ghedipunk","html_url":"https://github.com/ghedipunk","followers_url":"https://api.github.com/users/ghedipunk/followers","following_url":"https://api.github.com/users/ghedipunk/following{/other_user}","gists_url":"https://api.github.com/users/ghedipunk/gists{/gist_id}","starred_url":"https://api.github.com/users/ghedipunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghedipunk/subscriptions","organizations_url":"https://api.github.com/users/ghedipunk/orgs","repos_url":"https://api.github.com/users/ghedipunk/repos","events_url":"https://api.github.com/users/ghedipunk/events{/privacy}","received_events_url":"https://api.github.com/users/ghedipunk/received_events","type":"User","site_admin":false},"created_at":"2017-09-20T15:45:46Z","updated_at":"2017-09-20T15:45:46Z","author_association":"OWNER","body":"No, you can not reuse the same connection after it has been disconnected.\r\n\r\nThis is a security feature built into TCP/IP, rather than a limitations of this WebSockets library, the WebSockets protocol in general, etc.\r\n\r\nRather, if you want to resume the user's session across different connections, you will need a way to track that user, such as having them log in again, use a session cookie and read it during the handshake, etc."}}
{"actor":{"display_login":"ghedipunk"}}