{"action":"closed","issue":{"url":"https://api.github.com/repos/ptaoussanis/sente/issues/255","repository_url":"https://api.github.com/repos/ptaoussanis/sente","labels_url":"https://api.github.com/repos/ptaoussanis/sente/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/ptaoussanis/sente/issues/255/comments","events_url":"https://api.github.com/repos/ptaoussanis/sente/issues/255/events","html_url":"https://github.com/ptaoussanis/sente/issues/255","id":169511308,"number":255,"title":"Create synthetic onclose events from disconnected chsk's","user":{"login":"danielcompton","id":811954,"avatar_url":"https://avatars.githubusercontent.com/u/811954?v=3","gravatar_id":"","url":"https://api.github.com/users/danielcompton","html_url":"https://github.com/danielcompton","followers_url":"https://api.github.com/users/danielcompton/followers","following_url":"https://api.github.com/users/danielcompton/following{/other_user}","gists_url":"https://api.github.com/users/danielcompton/gists{/gist_id}","starred_url":"https://api.github.com/users/danielcompton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielcompton/subscriptions","organizations_url":"https://api.github.com/users/danielcompton/orgs","repos_url":"https://api.github.com/users/danielcompton/repos","events_url":"https://api.github.com/users/danielcompton/events{/privacy}","received_events_url":"https://api.github.com/users/danielcompton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"danielcompton","id":811954,"avatar_url":"https://avatars.githubusercontent.com/u/811954?v=3","gravatar_id":"","url":"https://api.github.com/users/danielcompton","html_url":"https://github.com/danielcompton","followers_url":"https://api.github.com/users/danielcompton/followers","following_url":"https://api.github.com/users/danielcompton/following{/other_user}","gists_url":"https://api.github.com/users/danielcompton/gists{/gist_id}","starred_url":"https://api.github.com/users/danielcompton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielcompton/subscriptions","organizations_url":"https://api.github.com/users/danielcompton/orgs","repos_url":"https://api.github.com/users/danielcompton/repos","events_url":"https://api.github.com/users/danielcompton/events{/privacy}","received_events_url":"https://api.github.com/users/danielcompton/received_events","type":"User","site_admin":false},"assignees":[{"login":"danielcompton","id":811954,"avatar_url":"https://avatars.githubusercontent.com/u/811954?v=3","gravatar_id":"","url":"https://api.github.com/users/danielcompton","html_url":"https://github.com/danielcompton","followers_url":"https://api.github.com/users/danielcompton/followers","following_url":"https://api.github.com/users/danielcompton/following{/other_user}","gists_url":"https://api.github.com/users/danielcompton/gists{/gist_id}","starred_url":"https://api.github.com/users/danielcompton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielcompton/subscriptions","organizations_url":"https://api.github.com/users/danielcompton/orgs","repos_url":"https://api.github.com/users/danielcompton/repos","events_url":"https://api.github.com/users/danielcompton/events{/privacy}","received_events_url":"https://api.github.com/users/danielcompton/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-08-05T01:41:05Z","updated_at":"2016-08-08T05:29:19Z","closed_at":"2016-08-08T05:29:19Z","body":"I'm trying to determine if a chsk has been closed manually by `chsk-disconect!` when looking at it's state. It seems like there are some differences in behaviour between connected and disconnected chsk's when `chsk-disconnect!` is called:\r\n\r\nIf a ws connection is connected, and `chsk-disconnect!` is called on it, the WebSocket `onclose` event will be called, and the state of the connection will be updated to `:open? false`, and include an onclose event which contains `:clean? true`.\r\n\r\nIf a ws connection is disconnected and trying to reconnect, calling `chsk-disconnect!` on it will set the state of the connection to `:open? false`, but no `onclose` event will be called. \r\n\r\nIs there a reliable way of determining when `chsk-disconnect!` has been called on a chsk, other than wrapping this call myself?"}}
{"actor":{"display_login":"danielcompton"}}