{"action":"created","issue":{"url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/499","repository_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO","labels_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/499/comments","events_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/499/events","html_url":"https://github.com/miguelgrinberg/Flask-SocketIO/issues/499","id":241958207,"number":499,"title":"Don't get information about broken connection","user":{"login":"trojek","id":2939613,"avatar_url":"https://avatars1.githubusercontent.com/u/2939613?v=4","gravatar_id":"","url":"https://api.github.com/users/trojek","html_url":"https://github.com/trojek","followers_url":"https://api.github.com/users/trojek/followers","following_url":"https://api.github.com/users/trojek/following{/other_user}","gists_url":"https://api.github.com/users/trojek/gists{/gist_id}","starred_url":"https://api.github.com/users/trojek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trojek/subscriptions","organizations_url":"https://api.github.com/users/trojek/orgs","repos_url":"https://api.github.com/users/trojek/repos","events_url":"https://api.github.com/users/trojek/events{/privacy}","received_events_url":"https://api.github.com/users/trojek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-07-11T07:52:13Z","updated_at":"2017-07-28T18:35:59Z","closed_at":null,"body":"I have code as follows:\r\n```\r\napp = Flask(__name__)\r\nsocketio = SocketIO(app, heartbeat_interval=4, heartbeat_timeout=10, engineio_logger=True)\r\n.....\r\n@socketio.on('connect')\r\ndef on_connect():\r\n    print(\"Client connected\")\r\n\r\n@socketio.on('disconnect')\r\ndef on_disconnect():\r\n    print(\"Client disconnected\")\r\n```\r\n\r\nWhen a client(JS) connects to my server I get the information \"Client connected\". When I lost connection (due to problems with a network) I don't get information: \"Client disconnected\".\r\nHow can I handle the situation when the client disconnects? I try to set heartbeats interval and timeout, but even if I wait for 10 minutes I don't get information that client disconnects."},"comment":{"url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/comments/318730785","html_url":"https://github.com/miguelgrinberg/Flask-SocketIO/issues/499#issuecomment-318730785","issue_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/499","id":318730785,"user":{"login":"trojek","id":2939613,"avatar_url":"https://avatars1.githubusercontent.com/u/2939613?v=4","gravatar_id":"","url":"https://api.github.com/users/trojek","html_url":"https://github.com/trojek","followers_url":"https://api.github.com/users/trojek/followers","following_url":"https://api.github.com/users/trojek/following{/other_user}","gists_url":"https://api.github.com/users/trojek/gists{/gist_id}","starred_url":"https://api.github.com/users/trojek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trojek/subscriptions","organizations_url":"https://api.github.com/users/trojek/orgs","repos_url":"https://api.github.com/users/trojek/repos","events_url":"https://api.github.com/users/trojek/events{/privacy}","received_events_url":"https://api.github.com/users/trojek/received_events","type":"User","site_admin":false},"created_at":"2017-07-28T18:35:59Z","updated_at":"2017-07-28T18:35:59Z","body":"Thank you for an explanation. Can you estimate how many ping pers seconds could cause problems with the connection (server stability)? "}}
{"actor":{"display_login":"trojek"}}