{"action":"created","comment":{"url":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls/comments/29644922","id":29644922,"diff_hunk":"@@ -0,0 +1,56 @@\n+package irc\n+\n+import (\n+\t\"github.com/gorilla/websocket\"\n+\t\"net\"\n+\t\"net/http\"\n+\t\"time\"\n+)\n+\n+var upgrader = websocket.Upgrader{\n+\tReadBufferSize:  1024,\n+\tWriteBufferSize: 1024,\n+\tCheckOrigin:     func(r *http.Request) bool { return true },\n+}\n+\n+type WSContainer struct {","path":"irc/websocket.go","position":16,"original_position":16,"commit_id":"6a69a658603bfc312555017df5dea1a5f6bb4083","original_commit_id":"6a69a658603bfc312555017df5dea1a5f6bb4083","user":{"login":"edmund-huber","id":345424,"avatar_url":"https://avatars.githubusercontent.com/u/345424?v=3","gravatar_id":"","url":"https://api.github.com/users/edmund-huber","html_url":"https://github.com/edmund-huber","followers_url":"https://api.github.com/users/edmund-huber/followers","following_url":"https://api.github.com/users/edmund-huber/following{/other_user}","gists_url":"https://api.github.com/users/edmund-huber/gists{/gist_id}","starred_url":"https://api.github.com/users/edmund-huber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edmund-huber/subscriptions","organizations_url":"https://api.github.com/users/edmund-huber/orgs","repos_url":"https://api.github.com/users/edmund-huber/repos","events_url":"https://api.github.com/users/edmund-huber/events{/privacy}","received_events_url":"https://api.github.com/users/edmund-huber/received_events","type":"User","site_admin":false},"body":"Would it make more sense to call this type `WSConn` to be consistent with the interface it's implementing, http://golang.org/pkg/net/#Conn ?","created_at":"2015-05-05T05:39:45Z","updated_at":"2015-05-05T05:39:45Z","html_url":"https://github.com/edmund-huber/ergonomadic/pull/12#discussion_r29644922","pull_request_url":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls/comments/29644922"},"html":{"href":"https://github.com/edmund-huber/ergonomadic/pull/12#discussion_r29644922"},"pull_request":{"href":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls/12","id":34616713,"html_url":"https://github.com/edmund-huber/ergonomadic/pull/12","diff_url":"https://github.com/edmund-huber/ergonomadic/pull/12.diff","patch_url":"https://github.com/edmund-huber/ergonomadic/pull/12.patch","issue_url":"https://api.github.com/repos/edmund-huber/ergonomadic/issues/12","number":12,"state":"open","locked":false,"title":"WebSocket layer to be able to connect \"web\" client","user":{"login":"stumpyfr","id":1849743,"avatar_url":"https://avatars.githubusercontent.com/u/1849743?v=3","gravatar_id":"","url":"https://api.github.com/users/stumpyfr","html_url":"https://github.com/stumpyfr","followers_url":"https://api.github.com/users/stumpyfr/followers","following_url":"https://api.github.com/users/stumpyfr/following{/other_user}","gists_url":"https://api.github.com/users/stumpyfr/gists{/gist_id}","starred_url":"https://api.github.com/users/stumpyfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stumpyfr/subscriptions","organizations_url":"https://api.github.com/users/stumpyfr/orgs","repos_url":"https://api.github.com/users/stumpyfr/repos","events_url":"https://api.github.com/users/stumpyfr/events{/privacy}","received_events_url":"https://api.github.com/users/stumpyfr/received_events","type":"User","site_admin":false},"body":"Currently working with a mini irc js implem, the flow:\r\n\r\n* PASS\r\n* NICK\r\n* USER\r\n* JOIN\r\n* PRIVMSG\r\n\r\nworks and the ping/pong timeout keep the communication open.","created_at":"2015-05-04T05:50:12Z","updated_at":"2015-05-05T05:39:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1786c2c70c316b1f0ea51650aa6adfc19c3d1a18","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls/12/commits","review_comments_url":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls/12/comments","review_comment_url":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edmund-huber/ergonomadic/issues/12/comments","statuses_url":"https://api.github.com/repos/edmund-huber/ergonomadic/statuses/6a69a658603bfc312555017df5dea1a5f6bb4083","head":{"label":"stumpyfr:websocket","ref":"websocket","sha":"6a69a658603bfc312555017df5dea1a5f6bb4083","user":{"login":"stumpyfr","id":1849743,"avatar_url":"https://avatars.githubusercontent.com/u/1849743?v=3","gravatar_id":"","url":"https://api.github.com/users/stumpyfr","html_url":"https://github.com/stumpyfr","followers_url":"https://api.github.com/users/stumpyfr/followers","following_url":"https://api.github.com/users/stumpyfr/following{/other_user}","gists_url":"https://api.github.com/users/stumpyfr/gists{/gist_id}","starred_url":"https://api.github.com/users/stumpyfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stumpyfr/subscriptions","organizations_url":"https://api.github.com/users/stumpyfr/orgs","repos_url":"https://api.github.com/users/stumpyfr/repos","events_url":"https://api.github.com/users/stumpyfr/events{/privacy}","received_events_url":"https://api.github.com/users/stumpyfr/received_events","type":"User","site_admin":false},"repo":{"id":34842825,"name":"ergonomadic","full_name":"stumpyfr/ergonomadic","owner":{"login":"stumpyfr","id":1849743,"avatar_url":"https://avatars.githubusercontent.com/u/1849743?v=3","gravatar_id":"","url":"https://api.github.com/users/stumpyfr","html_url":"https://github.com/stumpyfr","followers_url":"https://api.github.com/users/stumpyfr/followers","following_url":"https://api.github.com/users/stumpyfr/following{/other_user}","gists_url":"https://api.github.com/users/stumpyfr/gists{/gist_id}","starred_url":"https://api.github.com/users/stumpyfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stumpyfr/subscriptions","organizations_url":"https://api.github.com/users/stumpyfr/orgs","repos_url":"https://api.github.com/users/stumpyfr/repos","events_url":"https://api.github.com/users/stumpyfr/events{/privacy}","received_events_url":"https://api.github.com/users/stumpyfr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stumpyfr/ergonomadic","description":"A complete, tested, ircd written in Go.","fork":true,"url":"https://api.github.com/repos/stumpyfr/ergonomadic","forks_url":"https://api.github.com/repos/stumpyfr/ergonomadic/forks","keys_url":"https://api.github.com/repos/stumpyfr/ergonomadic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stumpyfr/ergonomadic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stumpyfr/ergonomadic/teams","hooks_url":"https://api.github.com/repos/stumpyfr/ergonomadic/hooks","issue_events_url":"https://api.github.com/repos/stumpyfr/ergonomadic/issues/events{/number}","events_url":"https://api.github.com/repos/stumpyfr/ergonomadic/events","assignees_url":"https://api.github.com/repos/stumpyfr/ergonomadic/assignees{/user}","branches_url":"https://api.github.com/repos/stumpyfr/ergonomadic/branches{/branch}","tags_url":"https://api.github.com/repos/stumpyfr/ergonomadic/tags","blobs_url":"https://api.github.com/repos/stumpyfr/ergonomadic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stumpyfr/ergonomadic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stumpyfr/ergonomadic/git/refs{/sha}","trees_url":"https://api.github.com/repos/stumpyfr/ergonomadic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stumpyfr/ergonomadic/statuses/{sha}","languages_url":"https://api.github.com/repos/stumpyfr/ergonomadic/languages","stargazers_url":"https://api.github.com/repos/stumpyfr/ergonomadic/stargazers","contributors_url":"https://api.github.com/repos/stumpyfr/ergonomadic/contributors","subscribers_url":"https://api.github.com/repos/stumpyfr/ergonomadic/subscribers","subscription_url":"https://api.github.com/repos/stumpyfr/ergonomadic/subscription","commits_url":"https://api.github.com/repos/stumpyfr/ergonomadic/commits{/sha}","git_commits_url":"https://api.github.com/repos/stumpyfr/ergonomadic/git/commits{/sha}","comments_url":"https://api.github.com/repos/stumpyfr/ergonomadic/comments{/number}","issue_comment_url":"https://api.github.com/repos/stumpyfr/ergonomadic/issues/comments{/number}","contents_url":"https://api.github.com/repos/stumpyfr/ergonomadic/contents/{+path}","compare_url":"https://api.github.com/repos/stumpyfr/ergonomadic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stumpyfr/ergonomadic/merges","archive_url":"https://api.github.com/repos/stumpyfr/ergonomadic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stumpyfr/ergonomadic/downloads","issues_url":"https://api.github.com/repos/stumpyfr/ergonomadic/issues{/number}","pulls_url":"https://api.github.com/repos/stumpyfr/ergonomadic/pulls{/number}","milestones_url":"https://api.github.com/repos/stumpyfr/ergonomadic/milestones{/number}","notifications_url":"https://api.github.com/repos/stumpyfr/ergonomadic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stumpyfr/ergonomadic/labels{/name}","releases_url":"https://api.github.com/repos/stumpyfr/ergonomadic/releases{/id}","created_at":"2015-04-30T08:18:20Z","updated_at":"2015-04-30T08:18:21Z","pushed_at":"2015-05-04T05:49:18Z","git_url":"git://github.com/stumpyfr/ergonomadic.git","ssh_url":"git@github.com:stumpyfr/ergonomadic.git","clone_url":"https://github.com/stumpyfr/ergonomadic.git","svn_url":"https://github.com/stumpyfr/ergonomadic","homepage":"","size":410,"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":"edmund-huber:master","ref":"master","sha":"89bdb8a3215d6095ca9eb6309d778a269a04e21b","user":{"login":"edmund-huber","id":345424,"avatar_url":"https://avatars.githubusercontent.com/u/345424?v=3","gravatar_id":"","url":"https://api.github.com/users/edmund-huber","html_url":"https://github.com/edmund-huber","followers_url":"https://api.github.com/users/edmund-huber/followers","following_url":"https://api.github.com/users/edmund-huber/following{/other_user}","gists_url":"https://api.github.com/users/edmund-huber/gists{/gist_id}","starred_url":"https://api.github.com/users/edmund-huber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edmund-huber/subscriptions","organizations_url":"https://api.github.com/users/edmund-huber/orgs","repos_url":"https://api.github.com/users/edmund-huber/repos","events_url":"https://api.github.com/users/edmund-huber/events{/privacy}","received_events_url":"https://api.github.com/users/edmund-huber/received_events","type":"User","site_admin":false},"repo":{"id":30854392,"name":"ergonomadic","full_name":"edmund-huber/ergonomadic","owner":{"login":"edmund-huber","id":345424,"avatar_url":"https://avatars.githubusercontent.com/u/345424?v=3","gravatar_id":"","url":"https://api.github.com/users/edmund-huber","html_url":"https://github.com/edmund-huber","followers_url":"https://api.github.com/users/edmund-huber/followers","following_url":"https://api.github.com/users/edmund-huber/following{/other_user}","gists_url":"https://api.github.com/users/edmund-huber/gists{/gist_id}","starred_url":"https://api.github.com/users/edmund-huber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edmund-huber/subscriptions","organizations_url":"https://api.github.com/users/edmund-huber/orgs","repos_url":"https://api.github.com/users/edmund-huber/repos","events_url":"https://api.github.com/users/edmund-huber/events{/privacy}","received_events_url":"https://api.github.com/users/edmund-huber/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edmund-huber/ergonomadic","description":"A complete, tested, ircd written in Go.","fork":false,"url":"https://api.github.com/repos/edmund-huber/ergonomadic","forks_url":"https://api.github.com/repos/edmund-huber/ergonomadic/forks","keys_url":"https://api.github.com/repos/edmund-huber/ergonomadic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edmund-huber/ergonomadic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edmund-huber/ergonomadic/teams","hooks_url":"https://api.github.com/repos/edmund-huber/ergonomadic/hooks","issue_events_url":"https://api.github.com/repos/edmund-huber/ergonomadic/issues/events{/number}","events_url":"https://api.github.com/repos/edmund-huber/ergonomadic/events","assignees_url":"https://api.github.com/repos/edmund-huber/ergonomadic/assignees{/user}","branches_url":"https://api.github.com/repos/edmund-huber/ergonomadic/branches{/branch}","tags_url":"https://api.github.com/repos/edmund-huber/ergonomadic/tags","blobs_url":"https://api.github.com/repos/edmund-huber/ergonomadic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edmund-huber/ergonomadic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edmund-huber/ergonomadic/git/refs{/sha}","trees_url":"https://api.github.com/repos/edmund-huber/ergonomadic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edmund-huber/ergonomadic/statuses/{sha}","languages_url":"https://api.github.com/repos/edmund-huber/ergonomadic/languages","stargazers_url":"https://api.github.com/repos/edmund-huber/ergonomadic/stargazers","contributors_url":"https://api.github.com/repos/edmund-huber/ergonomadic/contributors","subscribers_url":"https://api.github.com/repos/edmund-huber/ergonomadic/subscribers","subscription_url":"https://api.github.com/repos/edmund-huber/ergonomadic/subscription","commits_url":"https://api.github.com/repos/edmund-huber/ergonomadic/commits{/sha}","git_commits_url":"https://api.github.com/repos/edmund-huber/ergonomadic/git/commits{/sha}","comments_url":"https://api.github.com/repos/edmund-huber/ergonomadic/comments{/number}","issue_comment_url":"https://api.github.com/repos/edmund-huber/ergonomadic/issues/comments{/number}","contents_url":"https://api.github.com/repos/edmund-huber/ergonomadic/contents/{+path}","compare_url":"https://api.github.com/repos/edmund-huber/ergonomadic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edmund-huber/ergonomadic/merges","archive_url":"https://api.github.com/repos/edmund-huber/ergonomadic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edmund-huber/ergonomadic/downloads","issues_url":"https://api.github.com/repos/edmund-huber/ergonomadic/issues{/number}","pulls_url":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls{/number}","milestones_url":"https://api.github.com/repos/edmund-huber/ergonomadic/milestones{/number}","notifications_url":"https://api.github.com/repos/edmund-huber/ergonomadic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edmund-huber/ergonomadic/labels{/name}","releases_url":"https://api.github.com/repos/edmund-huber/ergonomadic/releases{/id}","created_at":"2015-02-16T04:55:34Z","updated_at":"2015-05-05T04:15:04Z","pushed_at":"2015-05-04T05:50:12Z","git_url":"git://github.com/edmund-huber/ergonomadic.git","ssh_url":"git@github.com:edmund-huber/ergonomadic.git","clone_url":"https://github.com/edmund-huber/ergonomadic.git","svn_url":"https://github.com/edmund-huber/ergonomadic","homepage":"","size":515,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":10,"forks":3,"open_issues":10,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls/12"},"html":{"href":"https://github.com/edmund-huber/ergonomadic/pull/12"},"issue":{"href":"https://api.github.com/repos/edmund-huber/ergonomadic/issues/12"},"comments":{"href":"https://api.github.com/repos/edmund-huber/ergonomadic/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edmund-huber/ergonomadic/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/edmund-huber/ergonomadic/statuses/6a69a658603bfc312555017df5dea1a5f6bb4083"}}}}