{"action":"created","issue":{"url":"https://api.github.com/repos/uProxy/uproxy/issues/990","labels_url":"https://api.github.com/repos/uProxy/uproxy/issues/990/labels{/name}","comments_url":"https://api.github.com/repos/uProxy/uproxy/issues/990/comments","events_url":"https://api.github.com/repos/uProxy/uproxy/issues/990/events","html_url":"https://github.com/uProxy/uproxy/issues/990","id":58930752,"number":990,"title":"\"XMPPSocialProvider received end\" event -should reflect on the UI instead of kick out ","user":{"login":"klazizpro","id":1900042,"avatar_url":"https://avatars.githubusercontent.com/u/1900042?v=3","gravatar_id":"","url":"https://api.github.com/users/klazizpro","html_url":"https://github.com/klazizpro","followers_url":"https://api.github.com/users/klazizpro/followers","following_url":"https://api.github.com/users/klazizpro/following{/other_user}","gists_url":"https://api.github.com/users/klazizpro/gists{/gist_id}","starred_url":"https://api.github.com/users/klazizpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klazizpro/subscriptions","organizations_url":"https://api.github.com/users/klazizpro/orgs","repos_url":"https://api.github.com/users/klazizpro/repos","events_url":"https://api.github.com/users/klazizpro/events{/privacy}","received_events_url":"https://api.github.com/users/klazizpro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/uProxy/uproxy/labels/P1","name":"P1","color":"FF9933"},{"url":"https://api.github.com/repos/uProxy/uproxy/labels/T:Needs-Discussion","name":"T:Needs-Discussion","color":"fbca04"},{"url":"https://api.github.com/repos/uProxy/uproxy/labels/T:Needs-UX","name":"T:Needs-UX","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/uProxy/uproxy/milestones/2","html_url":"https://github.com/uProxy/uproxy/milestones/v2.0%20Baxter%20release%20(After%20v1.0%20Allardice%20launch)","labels_url":"https://api.github.com/repos/uProxy/uproxy/milestones/2/labels","id":633167,"number":2,"title":"v2.0 Baxter release (After v1.0 Allardice launch)","description":"","creator":{"login":"willscott","id":428199,"avatar_url":"https://avatars.githubusercontent.com/u/428199?v=3","gravatar_id":"","url":"https://api.github.com/users/willscott","html_url":"https://github.com/willscott","followers_url":"https://api.github.com/users/willscott/followers","following_url":"https://api.github.com/users/willscott/following{/other_user}","gists_url":"https://api.github.com/users/willscott/gists{/gist_id}","starred_url":"https://api.github.com/users/willscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willscott/subscriptions","organizations_url":"https://api.github.com/users/willscott/orgs","repos_url":"https://api.github.com/users/willscott/repos","events_url":"https://api.github.com/users/willscott/events{/privacy}","received_events_url":"https://api.github.com/users/willscott/received_events","type":"User","site_admin":false},"open_issues":102,"closed_issues":19,"state":"open","created_at":"2014-04-17T16:58:27Z","updated_at":"2015-02-25T19:48:35Z","due_on":"2015-05-11T07:00:00Z","closed_at":null},"comments":3,"created_at":"2015-02-25T16:46:00Z","updated_at":"2015-02-25T20:15:03Z","closed_at":null,"body":"\r\nGoogle Chrome\t41.0.2272.64 (Official Build) beta-m\r\nRevision\t6d8fba54922d3ac39a2ac0798e27168b55f89014-refs/branch-heads/2272@{#330}\r\nOS\tWindows \r\nBlink\t537.36 (@190447)\r\nJavaScript\tV8 4.1.0.18\r\nFlash\t16.0.0.305\r\n\r\nthis might be a low priority -but I want to have an issue for it . \r\nI noticed after some time of proxying ( in this case after couple of hours of playing YT) this error come and kick the user out from the social network and user needs to log in again also the proxing stopped too.\r\n error\r\n--\r\n![social](https://cloud.githubusercontent.com/assets/1900042/6375039/8fe0fbfe-bce2-11e4-87d3-d3407b904b39.PNG)\r\n\r\n```\r\n [XMPPSocialProvider] E [Feb 25 07:42:59.305] received end event, status: ONLINE,\r\n Logger_console.print\r\n Logger_console.error\r\n (anonymous function)\r\n Provider.onMessage\r\n Hub.onMessage\r\n (anonymous function)\r\n Module.emitMessage\r\n (anonymous function)\r\nLink.emitMessage\r\n (anonymous function)\r\n```\r\n\r\n\r\nlogged out screenshot of the user \r\n\r\n--\r\n![endevent](https://cloud.githubusercontent.com/assets/1900042/6375050/9f23d8de-bce2-11e4-932d-c31fbce8ed81.PNG)\r\n\r\n\r\nExpected result \r\n--\r\nuser should receive a notification before they logged out from the social network \r\nand proxing should not be stopped.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/uProxy/uproxy/issues/comments/76046353","html_url":"https://github.com/uProxy/uproxy/issues/990#issuecomment-76046353","issue_url":"https://api.github.com/repos/uProxy/uproxy/issues/990","id":76046353,"user":{"login":"dborkan","id":6494307,"avatar_url":"https://avatars.githubusercontent.com/u/6494307?v=3","gravatar_id":"","url":"https://api.github.com/users/dborkan","html_url":"https://github.com/dborkan","followers_url":"https://api.github.com/users/dborkan/followers","following_url":"https://api.github.com/users/dborkan/following{/other_user}","gists_url":"https://api.github.com/users/dborkan/gists{/gist_id}","starred_url":"https://api.github.com/users/dborkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dborkan/subscriptions","organizations_url":"https://api.github.com/users/dborkan/orgs","repos_url":"https://api.github.com/users/dborkan/repos","events_url":"https://api.github.com/users/dborkan/events{/privacy}","received_events_url":"https://api.github.com/users/dborkan/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T20:15:03Z","updated_at":"2015-02-25T20:15:03Z","body":">\n>\n>    - Are Firebase connections more reliable than XMPP? (XMPP\n>    disconnections happen very frequently when using Google)\n>\n> Hopefully, but we don't really have any data on this yet.\n\n>\n>    - Can we turn on the XMPP re-connect option so that when we are logged\n>    out, users would just need to wait a short time and then the server would\n>    auto-log back in again.\n>\n> AFAIK the reconnect option we had set in the past on the XMPP.Client\nobject never helped us.  We could add our own logic to socialprovider.js to\nreconnect, but this is probably a bigger project (involves storing access\ntokens and possibly refreshing them).  Also it's not clear how many times\nwe should try reconnecting before just showing the user as logged out.\n\n>\n>\n> Some possible longer term directions:\n>\n>    - Separate notion of viewing the roster from being logged-in, so you\n>    can be proxying independently of being logged into a social network. This\n>    helps address (2).\n>\n> My understanding is this will mostly work (assuming we handle the UX\nchallenges which won't be easy), except for sometimes WebRTC needs to\nresend messages over the signaling channel even when the WebRTC connection\nis already established.\n"}}