{"action":"created","issue":{"url":"https://api.github.com/repos/oktapodia/node-ws-status/issues/3","repository_url":"https://api.github.com/repos/oktapodia/node-ws-status","labels_url":"https://api.github.com/repos/oktapodia/node-ws-status/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/oktapodia/node-ws-status/issues/3/comments","events_url":"https://api.github.com/repos/oktapodia/node-ws-status/issues/3/events","html_url":"https://github.com/oktapodia/node-ws-status/pull/3","id":305244918,"number":3,"title":"Lib codes","user":{"login":"mayk93","id":6986133,"avatar_url":"https://avatars3.githubusercontent.com/u/6986133?v=4","gravatar_id":"","url":"https://api.github.com/users/mayk93","html_url":"https://github.com/mayk93","followers_url":"https://api.github.com/users/mayk93/followers","following_url":"https://api.github.com/users/mayk93/following{/other_user}","gists_url":"https://api.github.com/users/mayk93/gists{/gist_id}","starred_url":"https://api.github.com/users/mayk93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayk93/subscriptions","organizations_url":"https://api.github.com/users/mayk93/orgs","repos_url":"https://api.github.com/users/mayk93/repos","events_url":"https://api.github.com/users/mayk93/events{/privacy}","received_events_url":"https://api.github.com/users/mayk93/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-14T16:55:52Z","updated_at":"2018-03-19T10:03:43Z","closed_at":"2018-03-19T10:03:43Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/oktapodia/node-ws-status/pulls/3","html_url":"https://github.com/oktapodia/node-ws-status/pull/3","diff_url":"https://github.com/oktapodia/node-ws-status/pull/3.diff","patch_url":"https://github.com/oktapodia/node-ws-status/pull/3.patch"},"body":"Hey,\r\n\r\nI added codes in the range `3000 - 3015` to be used in libraries.\r\n\r\nI also refactored code `1010`. I took the code from [here](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent#Properties)\r\n\r\nThe reason I added codes in the 3000 range is because those should be used in libraries and frameworks. In fact, using codes in the 1000 range in a library causes an error. That is part of the [specification](https://www.w3.org/TR/websockets/).\r\n\r\n> The close() method must run the following steps:\r\n\r\n> If the method's first argument is present but is not an integer equal to 1000 or in the range 3000 to 4999, throw an InvalidAccessError exception and abort these steps.\r\n\r\n---\r\n\r\n1. Added more codes ( 1012, 1013, 1014 ) \r\n\r\n2. Added `LIB_*` codes \r\n\r\n3. Refactored code `1010`, changed to `Missing extension`"},"comment":{"url":"https://api.github.com/repos/oktapodia/node-ws-status/issues/comments/374159659","html_url":"https://github.com/oktapodia/node-ws-status/pull/3#issuecomment-374159659","issue_url":"https://api.github.com/repos/oktapodia/node-ws-status/issues/3","id":374159659,"user":{"login":"oktapodia","id":2752200,"avatar_url":"https://avatars0.githubusercontent.com/u/2752200?v=4","gravatar_id":"","url":"https://api.github.com/users/oktapodia","html_url":"https://github.com/oktapodia","followers_url":"https://api.github.com/users/oktapodia/followers","following_url":"https://api.github.com/users/oktapodia/following{/other_user}","gists_url":"https://api.github.com/users/oktapodia/gists{/gist_id}","starred_url":"https://api.github.com/users/oktapodia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oktapodia/subscriptions","organizations_url":"https://api.github.com/users/oktapodia/orgs","repos_url":"https://api.github.com/users/oktapodia/repos","events_url":"https://api.github.com/users/oktapodia/events{/privacy}","received_events_url":"https://api.github.com/users/oktapodia/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T10:03:43Z","updated_at":"2018-03-19T10:03:43Z","author_association":"OWNER","body":"Thanks for your PR but I prefer to strictly follow the RFC"}}
{"actor":{"display_login":"oktapodia"}}