{"action":"created","issue":{"url":"https://api.github.com/repos/ptaoussanis/sente/issues/105","labels_url":"https://api.github.com/repos/ptaoussanis/sente/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/ptaoussanis/sente/issues/105/comments","events_url":"https://api.github.com/repos/ptaoussanis/sente/issues/105/events","html_url":"https://github.com/ptaoussanis/sente/issues/105","id":57840180,"number":105,"title":"handling auth reconnect vs server restart","user":{"login":"sritchie","id":69635,"avatar_url":"https://avatars.githubusercontent.com/u/69635?v=3","gravatar_id":"","url":"https://api.github.com/users/sritchie","html_url":"https://github.com/sritchie","followers_url":"https://api.github.com/users/sritchie/followers","following_url":"https://api.github.com/users/sritchie/following{/other_user}","gists_url":"https://api.github.com/users/sritchie/gists{/gist_id}","starred_url":"https://api.github.com/users/sritchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sritchie/subscriptions","organizations_url":"https://api.github.com/users/sritchie/orgs","repos_url":"https://api.github.com/users/sritchie/repos","events_url":"https://api.github.com/users/sritchie/events{/privacy}","received_events_url":"https://api.github.com/users/sritchie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ptaoussanis/sente/labels/ideas%20welcome","name":"ideas welcome","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-16T19:02:07Z","updated_at":"2015-02-23T04:01:44Z","closed_at":null,"body":"Hey Peter,\r\n\r\nI'm looking for advice on a way to distinguish between a client-triggered reconnect and a sudden reconnect that the client didn't expect. We hold a :redirect in our client-side Om state, and trigger a reconnect when a user authenticates to update their session server side.\r\n\r\nThe problem I'm running into is that if the server restarts, these redirects get triggered for all connected users. It'd be great to have a flag or something inside the sente map that this redirect was requested. What do you think? Is there some cleaner way to handle this?"},"comment":{"url":"https://api.github.com/repos/ptaoussanis/sente/issues/comments/75486833","html_url":"https://github.com/ptaoussanis/sente/issues/105#issuecomment-75486833","issue_url":"https://api.github.com/repos/ptaoussanis/sente/issues/105","id":75486833,"user":{"login":"ptaoussanis","id":160011,"avatar_url":"https://avatars.githubusercontent.com/u/160011?v=3","gravatar_id":"","url":"https://api.github.com/users/ptaoussanis","html_url":"https://github.com/ptaoussanis","followers_url":"https://api.github.com/users/ptaoussanis/followers","following_url":"https://api.github.com/users/ptaoussanis/following{/other_user}","gists_url":"https://api.github.com/users/ptaoussanis/gists{/gist_id}","starred_url":"https://api.github.com/users/ptaoussanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptaoussanis/subscriptions","organizations_url":"https://api.github.com/users/ptaoussanis/orgs","repos_url":"https://api.github.com/users/ptaoussanis/repos","events_url":"https://api.github.com/users/ptaoussanis/events{/privacy}","received_events_url":"https://api.github.com/users/ptaoussanis/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T04:01:44Z","updated_at":"2015-02-23T04:01:44Z","body":"@sritchie np - enjoy your down-time! Cheers :-)"}}