{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/desertbit/glue/pulls/4","id":47992653,"html_url":"https://github.com/desertbit/glue/pull/4","diff_url":"https://github.com/desertbit/glue/pull/4.diff","patch_url":"https://github.com/desertbit/glue/pull/4.patch","issue_url":"https://api.github.com/repos/desertbit/glue/issues/4","number":4,"state":"closed","locked":false,"title":"Update socket.go","user":{"login":"ZloyDyadka","id":5509643,"avatar_url":"https://avatars.githubusercontent.com/u/5509643?v=3","gravatar_id":"","url":"https://api.github.com/users/ZloyDyadka","html_url":"https://github.com/ZloyDyadka","followers_url":"https://api.github.com/users/ZloyDyadka/followers","following_url":"https://api.github.com/users/ZloyDyadka/following{/other_user}","gists_url":"https://api.github.com/users/ZloyDyadka/gists{/gist_id}","starred_url":"https://api.github.com/users/ZloyDyadka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZloyDyadka/subscriptions","organizations_url":"https://api.github.com/users/ZloyDyadka/orgs","repos_url":"https://api.github.com/users/ZloyDyadka/repos","events_url":"https://api.github.com/users/ZloyDyadka/events{/privacy}","received_events_url":"https://api.github.com/users/ZloyDyadka/received_events","type":"User","site_admin":false},"body":"Remove dirty hack, because gorilla websocket does not use 1001 error code\r\n\r\nIt was used here:\r\n\r\n```\r\n\tcase CloseMessage:\r\n\t\tc.WriteControl(CloseMessage, []byte{}, time.Now().Add(writeWait))\r\n\t\tcloseCode := CloseNoStatusReceived\r\n\t\tcloseText := \"\"\r\n\t\tif len(payload) >= 2 {\r\n\t\t\tcloseCode = int(binary.BigEndian.Uint16(payload))\r\n\t\t\tcloseText = string(payload[2:])\r\n\t\t}\r\n\t\treturn noFrame, &CloseError{Code: closeCode, Text: closeText}\r\n\t}\r\n```","created_at":"2015-10-17T18:45:26Z","updated_at":"2015-10-19T19:04:26Z","closed_at":"2015-10-19T19:04:26Z","merged_at":null,"merge_commit_sha":"74d19805c610431b29fba983270ace5b46fab376","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/desertbit/glue/pulls/4/commits","review_comments_url":"https://api.github.com/repos/desertbit/glue/pulls/4/comments","review_comment_url":"https://api.github.com/repos/desertbit/glue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/desertbit/glue/issues/4/comments","statuses_url":"https://api.github.com/repos/desertbit/glue/statuses/10d5e6528a06c7ff679e3ebe33443d008b5983d1","head":{"label":"ZloyDyadka:patch-1","ref":"patch-1","sha":"10d5e6528a06c7ff679e3ebe33443d008b5983d1","user":{"login":"ZloyDyadka","id":5509643,"avatar_url":"https://avatars.githubusercontent.com/u/5509643?v=3","gravatar_id":"","url":"https://api.github.com/users/ZloyDyadka","html_url":"https://github.com/ZloyDyadka","followers_url":"https://api.github.com/users/ZloyDyadka/followers","following_url":"https://api.github.com/users/ZloyDyadka/following{/other_user}","gists_url":"https://api.github.com/users/ZloyDyadka/gists{/gist_id}","starred_url":"https://api.github.com/users/ZloyDyadka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZloyDyadka/subscriptions","organizations_url":"https://api.github.com/users/ZloyDyadka/orgs","repos_url":"https://api.github.com/users/ZloyDyadka/repos","events_url":"https://api.github.com/users/ZloyDyadka/events{/privacy}","received_events_url":"https://api.github.com/users/ZloyDyadka/received_events","type":"User","site_admin":false},"repo":{"id":44448935,"name":"glue","full_name":"ZloyDyadka/glue","owner":{"login":"ZloyDyadka","id":5509643,"avatar_url":"https://avatars.githubusercontent.com/u/5509643?v=3","gravatar_id":"","url":"https://api.github.com/users/ZloyDyadka","html_url":"https://github.com/ZloyDyadka","followers_url":"https://api.github.com/users/ZloyDyadka/followers","following_url":"https://api.github.com/users/ZloyDyadka/following{/other_user}","gists_url":"https://api.github.com/users/ZloyDyadka/gists{/gist_id}","starred_url":"https://api.github.com/users/ZloyDyadka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZloyDyadka/subscriptions","organizations_url":"https://api.github.com/users/ZloyDyadka/orgs","repos_url":"https://api.github.com/users/ZloyDyadka/repos","events_url":"https://api.github.com/users/ZloyDyadka/events{/privacy}","received_events_url":"https://api.github.com/users/ZloyDyadka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZloyDyadka/glue","description":"Glue - Robust Go and Javascript Socket Library (Alternative to Socket.io)","fork":true,"url":"https://api.github.com/repos/ZloyDyadka/glue","forks_url":"https://api.github.com/repos/ZloyDyadka/glue/forks","keys_url":"https://api.github.com/repos/ZloyDyadka/glue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZloyDyadka/glue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZloyDyadka/glue/teams","hooks_url":"https://api.github.com/repos/ZloyDyadka/glue/hooks","issue_events_url":"https://api.github.com/repos/ZloyDyadka/glue/issues/events{/number}","events_url":"https://api.github.com/repos/ZloyDyadka/glue/events","assignees_url":"https://api.github.com/repos/ZloyDyadka/glue/assignees{/user}","branches_url":"https://api.github.com/repos/ZloyDyadka/glue/branches{/branch}","tags_url":"https://api.github.com/repos/ZloyDyadka/glue/tags","blobs_url":"https://api.github.com/repos/ZloyDyadka/glue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZloyDyadka/glue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZloyDyadka/glue/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZloyDyadka/glue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZloyDyadka/glue/statuses/{sha}","languages_url":"https://api.github.com/repos/ZloyDyadka/glue/languages","stargazers_url":"https://api.github.com/repos/ZloyDyadka/glue/stargazers","contributors_url":"https://api.github.com/repos/ZloyDyadka/glue/contributors","subscribers_url":"https://api.github.com/repos/ZloyDyadka/glue/subscribers","subscription_url":"https://api.github.com/repos/ZloyDyadka/glue/subscription","commits_url":"https://api.github.com/repos/ZloyDyadka/glue/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZloyDyadka/glue/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZloyDyadka/glue/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZloyDyadka/glue/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZloyDyadka/glue/contents/{+path}","compare_url":"https://api.github.com/repos/ZloyDyadka/glue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZloyDyadka/glue/merges","archive_url":"https://api.github.com/repos/ZloyDyadka/glue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZloyDyadka/glue/downloads","issues_url":"https://api.github.com/repos/ZloyDyadka/glue/issues{/number}","pulls_url":"https://api.github.com/repos/ZloyDyadka/glue/pulls{/number}","milestones_url":"https://api.github.com/repos/ZloyDyadka/glue/milestones{/number}","notifications_url":"https://api.github.com/repos/ZloyDyadka/glue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZloyDyadka/glue/labels{/name}","releases_url":"https://api.github.com/repos/ZloyDyadka/glue/releases{/id}","created_at":"2015-10-17T18:19:42Z","updated_at":"2015-10-17T18:19:43Z","pushed_at":"2015-10-17T18:23:28Z","git_url":"git://github.com/ZloyDyadka/glue.git","ssh_url":"git@github.com:ZloyDyadka/glue.git","clone_url":"https://github.com/ZloyDyadka/glue.git","svn_url":"https://github.com/ZloyDyadka/glue","homepage":"","size":254,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"desertbit:master","ref":"master","sha":"e7ae78abac6ff72221ba859c108e2949cd598173","user":{"login":"desertbit","id":11889730,"avatar_url":"https://avatars.githubusercontent.com/u/11889730?v=3","gravatar_id":"","url":"https://api.github.com/users/desertbit","html_url":"https://github.com/desertbit","followers_url":"https://api.github.com/users/desertbit/followers","following_url":"https://api.github.com/users/desertbit/following{/other_user}","gists_url":"https://api.github.com/users/desertbit/gists{/gist_id}","starred_url":"https://api.github.com/users/desertbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desertbit/subscriptions","organizations_url":"https://api.github.com/users/desertbit/orgs","repos_url":"https://api.github.com/users/desertbit/repos","events_url":"https://api.github.com/users/desertbit/events{/privacy}","received_events_url":"https://api.github.com/users/desertbit/received_events","type":"Organization","site_admin":false},"repo":{"id":37012297,"name":"glue","full_name":"desertbit/glue","owner":{"login":"desertbit","id":11889730,"avatar_url":"https://avatars.githubusercontent.com/u/11889730?v=3","gravatar_id":"","url":"https://api.github.com/users/desertbit","html_url":"https://github.com/desertbit","followers_url":"https://api.github.com/users/desertbit/followers","following_url":"https://api.github.com/users/desertbit/following{/other_user}","gists_url":"https://api.github.com/users/desertbit/gists{/gist_id}","starred_url":"https://api.github.com/users/desertbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desertbit/subscriptions","organizations_url":"https://api.github.com/users/desertbit/orgs","repos_url":"https://api.github.com/users/desertbit/repos","events_url":"https://api.github.com/users/desertbit/events{/privacy}","received_events_url":"https://api.github.com/users/desertbit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/desertbit/glue","description":"Glue - Robust Go and Javascript Socket Library (Alternative to Socket.io)","fork":false,"url":"https://api.github.com/repos/desertbit/glue","forks_url":"https://api.github.com/repos/desertbit/glue/forks","keys_url":"https://api.github.com/repos/desertbit/glue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/desertbit/glue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/desertbit/glue/teams","hooks_url":"https://api.github.com/repos/desertbit/glue/hooks","issue_events_url":"https://api.github.com/repos/desertbit/glue/issues/events{/number}","events_url":"https://api.github.com/repos/desertbit/glue/events","assignees_url":"https://api.github.com/repos/desertbit/glue/assignees{/user}","branches_url":"https://api.github.com/repos/desertbit/glue/branches{/branch}","tags_url":"https://api.github.com/repos/desertbit/glue/tags","blobs_url":"https://api.github.com/repos/desertbit/glue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/desertbit/glue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/desertbit/glue/git/refs{/sha}","trees_url":"https://api.github.com/repos/desertbit/glue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/desertbit/glue/statuses/{sha}","languages_url":"https://api.github.com/repos/desertbit/glue/languages","stargazers_url":"https://api.github.com/repos/desertbit/glue/stargazers","contributors_url":"https://api.github.com/repos/desertbit/glue/contributors","subscribers_url":"https://api.github.com/repos/desertbit/glue/subscribers","subscription_url":"https://api.github.com/repos/desertbit/glue/subscription","commits_url":"https://api.github.com/repos/desertbit/glue/commits{/sha}","git_commits_url":"https://api.github.com/repos/desertbit/glue/git/commits{/sha}","comments_url":"https://api.github.com/repos/desertbit/glue/comments{/number}","issue_comment_url":"https://api.github.com/repos/desertbit/glue/issues/comments{/number}","contents_url":"https://api.github.com/repos/desertbit/glue/contents/{+path}","compare_url":"https://api.github.com/repos/desertbit/glue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/desertbit/glue/merges","archive_url":"https://api.github.com/repos/desertbit/glue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/desertbit/glue/downloads","issues_url":"https://api.github.com/repos/desertbit/glue/issues{/number}","pulls_url":"https://api.github.com/repos/desertbit/glue/pulls{/number}","milestones_url":"https://api.github.com/repos/desertbit/glue/milestones{/number}","notifications_url":"https://api.github.com/repos/desertbit/glue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/desertbit/glue/labels{/name}","releases_url":"https://api.github.com/repos/desertbit/glue/releases{/id}","created_at":"2015-06-07T10:21:15Z","updated_at":"2015-10-19T16:05:00Z","pushed_at":"2015-10-18T19:07:06Z","git_url":"git://github.com/desertbit/glue.git","ssh_url":"git@github.com:desertbit/glue.git","clone_url":"https://github.com/desertbit/glue.git","svn_url":"https://github.com/desertbit/glue","homepage":"","size":313,"stargazers_count":107,"watchers_count":107,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":107,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/desertbit/glue/pulls/4"},"html":{"href":"https://github.com/desertbit/glue/pull/4"},"issue":{"href":"https://api.github.com/repos/desertbit/glue/issues/4"},"comments":{"href":"https://api.github.com/repos/desertbit/glue/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/desertbit/glue/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/desertbit/glue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/desertbit/glue/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/desertbit/glue/statuses/10d5e6528a06c7ff679e3ebe33443d008b5983d1"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":1,"deletions":9,"changed_files":1}}