{"action":"created","issue":{"url":"https://api.github.com/repos/Megabyte918/MultiOgar-Edited/issues/196","repository_url":"https://api.github.com/repos/Megabyte918/MultiOgar-Edited","labels_url":"https://api.github.com/repos/Megabyte918/MultiOgar-Edited/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/Megabyte918/MultiOgar-Edited/issues/196/comments","events_url":"https://api.github.com/repos/Megabyte918/MultiOgar-Edited/issues/196/events","html_url":"https://github.com/Megabyte918/MultiOgar-Edited/issues/196","id":195442346,"number":196,"title":"Reconnection","user":{"login":"Gimmo","id":4733405,"avatar_url":"https://avatars.githubusercontent.com/u/4733405?v=3","gravatar_id":"","url":"https://api.github.com/users/Gimmo","html_url":"https://github.com/Gimmo","followers_url":"https://api.github.com/users/Gimmo/followers","following_url":"https://api.github.com/users/Gimmo/following{/other_user}","gists_url":"https://api.github.com/users/Gimmo/gists{/gist_id}","starred_url":"https://api.github.com/users/Gimmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gimmo/subscriptions","organizations_url":"https://api.github.com/users/Gimmo/orgs","repos_url":"https://api.github.com/users/Gimmo/repos","events_url":"https://api.github.com/users/Gimmo/events{/privacy}","received_events_url":"https://api.github.com/users/Gimmo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-14T05:14:47Z","updated_at":"2016-12-15T06:08:46Z","closed_at":null,"body":"How is reconnection supposed to work?\r\n\r\nWhen I disconnect player (close browser tab or refresh browser) player stay in player list with status \"disconnected\".\r\nWhen I open client in a new tab or refresh browser, server generate a new player with new ID.\r\nWhen I do this 10 times, I get 10 hanged users in waiting timeout, which I cannot reconnect.\r\n[![cons.png](https://s24.postimg.org/60mag1okl/cons.png)](https://postimg.org/image/cr2rphbq9/)\r\nWhat the sense of it and how can I reconnect ? \r\n\r\nProblem persists in all clients. The only difference is agar.io client - using it I can hang no more then 2 instances, if I repeat disconnections, older users disappear from player list. \r\n\r\nAs I think, we have mix of two tasks:\r\n1. \"Keep connection\" timeout - while player is not active.\r\n2. Reconnection timeout - while we store user data for reconnection, which **doesn't work at all**.\r\n\r\nAs reconnection doesn't work - player list should be cleaned from dead records immidiately when socket connection is lost.  So-so..."},"comment":{"url":"https://api.github.com/repos/Megabyte918/MultiOgar-Edited/issues/comments/267247252","html_url":"https://github.com/Megabyte918/MultiOgar-Edited/issues/196#issuecomment-267247252","issue_url":"https://api.github.com/repos/Megabyte918/MultiOgar-Edited/issues/196","id":267247252,"user":{"login":"Gimmo","id":4733405,"avatar_url":"https://avatars.githubusercontent.com/u/4733405?v=3","gravatar_id":"","url":"https://api.github.com/users/Gimmo","html_url":"https://github.com/Gimmo","followers_url":"https://api.github.com/users/Gimmo/followers","following_url":"https://api.github.com/users/Gimmo/following{/other_user}","gists_url":"https://api.github.com/users/Gimmo/gists{/gist_id}","starred_url":"https://api.github.com/users/Gimmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gimmo/subscriptions","organizations_url":"https://api.github.com/users/Gimmo/orgs","repos_url":"https://api.github.com/users/Gimmo/repos","events_url":"https://api.github.com/users/Gimmo/events{/privacy}","received_events_url":"https://api.github.com/users/Gimmo/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T06:08:46Z","updated_at":"2016-12-15T06:08:46Z","body":"Cigar and Alis. \r\nServer on Deb7  VM.\r\nMultiOgar - last version \"from the box\".\r\nCheck one more time right now. F5->Play button on client ->F5.......skip...... pl on console"}}
{"actor":{"display_login":"Gimmo"}}