{"action":"created","issue":{"url":"https://api.github.com/repos/deployd/deployd/issues/580","labels_url":"https://api.github.com/repos/deployd/deployd/issues/580/labels{/name}","comments_url":"https://api.github.com/repos/deployd/deployd/issues/580/comments","events_url":"https://api.github.com/repos/deployd/deployd/issues/580/events","html_url":"https://github.com/deployd/deployd/pull/580","id":80916404,"number":580,"title":"fix(session): session rehydration via socket.io","user":{"login":"andreialecu","id":697707,"avatar_url":"https://avatars.githubusercontent.com/u/697707?v=3","gravatar_id":"","url":"https://api.github.com/users/andreialecu","html_url":"https://github.com/andreialecu","followers_url":"https://api.github.com/users/andreialecu/followers","following_url":"https://api.github.com/users/andreialecu/following{/other_user}","gists_url":"https://api.github.com/users/andreialecu/gists{/gist_id}","starred_url":"https://api.github.com/users/andreialecu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreialecu/subscriptions","organizations_url":"https://api.github.com/users/andreialecu/orgs","repos_url":"https://api.github.com/users/andreialecu/repos","events_url":"https://api.github.com/users/andreialecu/events{/privacy}","received_events_url":"https://api.github.com/users/andreialecu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"ericfong","id":237028,"avatar_url":"https://avatars.githubusercontent.com/u/237028?v=3","gravatar_id":"","url":"https://api.github.com/users/ericfong","html_url":"https://github.com/ericfong","followers_url":"https://api.github.com/users/ericfong/followers","following_url":"https://api.github.com/users/ericfong/following{/other_user}","gists_url":"https://api.github.com/users/ericfong/gists{/gist_id}","starred_url":"https://api.github.com/users/ericfong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericfong/subscriptions","organizations_url":"https://api.github.com/users/ericfong/orgs","repos_url":"https://api.github.com/users/ericfong/repos","events_url":"https://api.github.com/users/ericfong/events{/privacy}","received_events_url":"https://api.github.com/users/ericfong/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-05-26T11:16:48Z","updated_at":"2015-06-02T01:14:36Z","closed_at":"2015-06-02T01:14:05Z","pull_request":{"url":"https://api.github.com/repos/deployd/deployd/pulls/580","html_url":"https://github.com/deployd/deployd/pull/580","diff_url":"https://github.com/deployd/deployd/pull/580.diff","patch_url":"https://github.com/deployd/deployd/pull/580.patch"},"body":"When deployd crashes or is stopped and restarted, all the sessions in the memory store are cleared, so when you reconnect via socket.io, it can't associate the connection with a valid session. Previously, all new emitToUsers messages targeting that sesssion were lost until you logged in again so your session got recreated.\r\n\r\nThis PR fixes this issue so that the session is rehydrated appropriately if a socket.io connection requests it."},"comment":{"url":"https://api.github.com/repos/deployd/deployd/issues/comments/107764759","html_url":"https://github.com/deployd/deployd/pull/580#issuecomment-107764759","issue_url":"https://api.github.com/repos/deployd/deployd/issues/580","id":107764759,"user":{"login":"ericfong","id":237028,"avatar_url":"https://avatars.githubusercontent.com/u/237028?v=3","gravatar_id":"","url":"https://api.github.com/users/ericfong","html_url":"https://github.com/ericfong","followers_url":"https://api.github.com/users/ericfong/followers","following_url":"https://api.github.com/users/ericfong/following{/other_user}","gists_url":"https://api.github.com/users/ericfong/gists{/gist_id}","starred_url":"https://api.github.com/users/ericfong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericfong/subscriptions","organizations_url":"https://api.github.com/users/ericfong/orgs","repos_url":"https://api.github.com/users/ericfong/repos","events_url":"https://api.github.com/users/ericfong/events{/privacy}","received_events_url":"https://api.github.com/users/ericfong/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T01:14:36Z","updated_at":"2015-06-02T01:14:36Z","body":"Thanks for your contribution!\r\nLanded as 29d22cf2ec3818ce03d19ab9f694a193224b3686"}}