payload: {"action":"created","issue":{"url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/2393","repository_url":"https://api.github.com/repos/Atmosphere/atmosphere","labels_url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/2393/labels{/name}","comments_url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/2393/comments","events_url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/2393/events","html_url":"https://github.com/Atmosphere/atmosphere/issues/2393","id":545296835,"node_id":"MDU6SXNzdWU1NDUyOTY4MzU=","number":2393,"title":"How to get the websocket close code with atmosphere.js","user":{"login":"huajingze","id":48873237,"node_id":"MDQ6VXNlcjQ4ODczMjM3","avatar_url":"https://avatars3.githubusercontent.com/u/48873237?v=4","gravatar_id":"","url":"https://api.github.com/users/huajingze","html_url":"https://github.com/huajingze","followers_url":"https://api.github.com/users/huajingze/followers","following_url":"https://api.github.com/users/huajingze/following{/other_user}","gists_url":"https://api.github.com/users/huajingze/gists{/gist_id}","starred_url":"https://api.github.com/users/huajingze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huajingze/subscriptions","organizations_url":"https://api.github.com/users/huajingze/orgs","repos_url":"https://api.github.com/users/huajingze/repos","events_url":"https://api.github.com/users/huajingze/events{/privacy}","received_events_url":"https://api.github.com/users/huajingze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2020-01-04T15:24:48Z","updated_at":"2020-01-06T11:33:19Z","closed_at":null,"author_association":"NONE","body":"Our project use atmosphere.js , now I could get the response code is 200 from the \"onClose\" function.\r\nRequest.onClose(Response) {}\r\n\r\nhow to get the specified close code from the onClose function, such as 1000 or 1001. Because I need to recoginze whether the browser close the websocket or the server side close the websocket.\r\nThanks much.\r\n\r\n```js\r\ncase 1000:\r\nreason = \"Normal closure; the connection successfully completed whatever purpose for which it was created.\";\r\nbreak;\r\ncase 1001:\r\nreason = \"The endpoint is going away, either because of a server failure or because the \"\r\n+ \"browser is navigating away from the page that opened the connection.\";\r\nbreak;\r\ncase 1002:\r\nreason = \"The endpoint is terminating the connection due to a protocol error.\";\r\nbreak;\r\n```"},"comment":{"url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/comments/571106768","html_url":"https://github.com/Atmosphere/atmosphere/issues/2393#issuecomment-571106768","issue_url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/2393","id":571106768,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MTEwNjc2OA==","user":{"login":"jfarcand","id":51285,"node_id":"MDQ6VXNlcjUxMjg1","avatar_url":"https://avatars3.githubusercontent.com/u/51285?v=4","gravatar_id":"","url":"https://api.github.com/users/jfarcand","html_url":"https://github.com/jfarcand","followers_url":"https://api.github.com/users/jfarcand/followers","following_url":"https://api.github.com/users/jfarcand/following{/other_user}","gists_url":"https://api.github.com/users/jfarcand/gists{/gist_id}","starred_url":"https://api.github.com/users/jfarcand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfarcand/subscriptions","organizations_url":"https://api.github.com/users/jfarcand/orgs","repos_url":"https://api.github.com/users/jfarcand/repos","events_url":"https://api.github.com/users/jfarcand/events{/privacy}","received_events_url":"https://api.github.com/users/jfarcand/received_events","type":"User","site_admin":false},"created_at":"2020-01-06T11:33:19Z","updated_at":"2020-01-06T11:33:19Z","author_association":"MEMBER","body":"@huajingze Not supported, but would be easy to add this feature -> https://github.com/Atmosphere/atmosphere-javascript/blob/master/modules/javascript/src/main/webapp/javascript/atmosphere.js#L1485"}}
other: {"actor":{"display_login":"jfarcand"}}