{"action":"created","comment":{"url":"https://api.github.com/repos/substancelab/pullhub/pulls/comments/87584018","pull_request_review_id":8192166,"id":87584018,"diff_hunk":"@@ -2,25 +2,18 @@ defmodule Pullhub.UserSocket do\n   use Phoenix.Socket\n \n   ## Channels\n-  # channel \"room:*\", Pullhub.RoomChannel\n+  channel \"repository:*\", Pullhub.RepositoryChannel\n \n   ## Transports\n   transport :websocket, Phoenix.Transports.WebSocket\n-  # transport :longpoll, Phoenix.Transports.LongPoll\n \n-  # Socket params are passed from the client and can\n-  # be used to verify and authenticate a user. After\n-  # verification, you can put default assigns into\n-  # the socket that will be set for all channels, ie\n-  #\n-  #     {:ok, assign(socket, :user_id, verified_user_id)}\n-  #\n-  # To deny connection, return `:error`.\n-  #\n-  # See `Phoenix.Token` documentation for examples in\n-  # performing token verification on connect.\n-  def connect(_params, socket) do\n-    {:ok, socket}\n+  def connect(%{\"token\" => token}, socket) do\n+    case Phoenix.Token.verify(socket, \"user socket\", token, max_age: 1209600) do","path":"web/channels/user_socket.ex","position":25,"original_position":25,"commit_id":"058d5b3f4ca5c963694c346a5506835fe6b70f6d","original_commit_id":"c7e02390e146574b2ae2e2f4937c48df3f09ce61","user":{"login":"olepalm","id":5213037,"avatar_url":"https://avatars.githubusercontent.com/u/5213037?v=3","gravatar_id":"","url":"https://api.github.com/users/olepalm","html_url":"https://github.com/olepalm","followers_url":"https://api.github.com/users/olepalm/followers","following_url":"https://api.github.com/users/olepalm/following{/other_user}","gists_url":"https://api.github.com/users/olepalm/gists{/gist_id}","starred_url":"https://api.github.com/users/olepalm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olepalm/subscriptions","organizations_url":"https://api.github.com/users/olepalm/orgs","repos_url":"https://api.github.com/users/olepalm/repos","events_url":"https://api.github.com/users/olepalm/events{/privacy}","received_events_url":"https://api.github.com/users/olepalm/received_events","type":"User","site_admin":false},"body":"rent spørgsmål: er der en bestemt grund til `max_age` er 1209600?","created_at":"2016-11-11T12:56:30Z","updated_at":"2016-11-11T12:56:30Z","html_url":"https://github.com/substancelab/pullhub/pull/23#discussion_r87584018","pull_request_url":"https://api.github.com/repos/substancelab/pullhub/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/substancelab/pullhub/pulls/comments/87584018"},"html":{"href":"https://github.com/substancelab/pullhub/pull/23#discussion_r87584018"},"pull_request":{"href":"https://api.github.com/repos/substancelab/pullhub/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/substancelab/pullhub/pulls/23","id":93326784,"html_url":"https://github.com/substancelab/pullhub/pull/23","diff_url":"https://github.com/substancelab/pullhub/pull/23.diff","patch_url":"https://github.com/substancelab/pullhub/pull/23.patch","issue_url":"https://api.github.com/repos/substancelab/pullhub/issues/23","number":23,"state":"open","locked":false,"title":"Repositories websockets","user":{"login":"jakobdamjensen","id":85216,"avatar_url":"https://avatars.githubusercontent.com/u/85216?v=3","gravatar_id":"","url":"https://api.github.com/users/jakobdamjensen","html_url":"https://github.com/jakobdamjensen","followers_url":"https://api.github.com/users/jakobdamjensen/followers","following_url":"https://api.github.com/users/jakobdamjensen/following{/other_user}","gists_url":"https://api.github.com/users/jakobdamjensen/gists{/gist_id}","starred_url":"https://api.github.com/users/jakobdamjensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakobdamjensen/subscriptions","organizations_url":"https://api.github.com/users/jakobdamjensen/orgs","repos_url":"https://api.github.com/users/jakobdamjensen/repos","events_url":"https://api.github.com/users/jakobdamjensen/events{/privacy}","received_events_url":"https://api.github.com/users/jakobdamjensen/received_events","type":"User","site_admin":false},"body":"When user requests the repositories page a request to Github is send to fetch latest repositories. When they are fetched a websocket broadcast will be executed with all repository rows. It's no longer necessary manually reload the page.","created_at":"2016-11-11T12:45:54Z","updated_at":"2016-11-11T12:56:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a9964c8c7a8bdf982b6a15a18abeae7d62be749","assignee":{"login":"koppen","id":6480,"avatar_url":"https://avatars.githubusercontent.com/u/6480?v=3","gravatar_id":"","url":"https://api.github.com/users/koppen","html_url":"https://github.com/koppen","followers_url":"https://api.github.com/users/koppen/followers","following_url":"https://api.github.com/users/koppen/following{/other_user}","gists_url":"https://api.github.com/users/koppen/gists{/gist_id}","starred_url":"https://api.github.com/users/koppen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koppen/subscriptions","organizations_url":"https://api.github.com/users/koppen/orgs","repos_url":"https://api.github.com/users/koppen/repos","events_url":"https://api.github.com/users/koppen/events{/privacy}","received_events_url":"https://api.github.com/users/koppen/received_events","type":"User","site_admin":false},"assignees":[{"login":"koppen","id":6480,"avatar_url":"https://avatars.githubusercontent.com/u/6480?v=3","gravatar_id":"","url":"https://api.github.com/users/koppen","html_url":"https://github.com/koppen","followers_url":"https://api.github.com/users/koppen/followers","following_url":"https://api.github.com/users/koppen/following{/other_user}","gists_url":"https://api.github.com/users/koppen/gists{/gist_id}","starred_url":"https://api.github.com/users/koppen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koppen/subscriptions","organizations_url":"https://api.github.com/users/koppen/orgs","repos_url":"https://api.github.com/users/koppen/repos","events_url":"https://api.github.com/users/koppen/events{/privacy}","received_events_url":"https://api.github.com/users/koppen/received_events","type":"User","site_admin":false},{"login":"olepalm","id":5213037,"avatar_url":"https://avatars.githubusercontent.com/u/5213037?v=3","gravatar_id":"","url":"https://api.github.com/users/olepalm","html_url":"https://github.com/olepalm","followers_url":"https://api.github.com/users/olepalm/followers","following_url":"https://api.github.com/users/olepalm/following{/other_user}","gists_url":"https://api.github.com/users/olepalm/gists{/gist_id}","starred_url":"https://api.github.com/users/olepalm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olepalm/subscriptions","organizations_url":"https://api.github.com/users/olepalm/orgs","repos_url":"https://api.github.com/users/olepalm/repos","events_url":"https://api.github.com/users/olepalm/events{/privacy}","received_events_url":"https://api.github.com/users/olepalm/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/substancelab/pullhub/pulls/23/commits","review_comments_url":"https://api.github.com/repos/substancelab/pullhub/pulls/23/comments","review_comment_url":"https://api.github.com/repos/substancelab/pullhub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/substancelab/pullhub/issues/23/comments","statuses_url":"https://api.github.com/repos/substancelab/pullhub/statuses/058d5b3f4ca5c963694c346a5506835fe6b70f6d","head":{"label":"substancelab:repositories-websockets","ref":"repositories-websockets","sha":"058d5b3f4ca5c963694c346a5506835fe6b70f6d","user":{"login":"substancelab","id":2912227,"avatar_url":"https://avatars.githubusercontent.com/u/2912227?v=3","gravatar_id":"","url":"https://api.github.com/users/substancelab","html_url":"https://github.com/substancelab","followers_url":"https://api.github.com/users/substancelab/followers","following_url":"https://api.github.com/users/substancelab/following{/other_user}","gists_url":"https://api.github.com/users/substancelab/gists{/gist_id}","starred_url":"https://api.github.com/users/substancelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/substancelab/subscriptions","organizations_url":"https://api.github.com/users/substancelab/orgs","repos_url":"https://api.github.com/users/substancelab/repos","events_url":"https://api.github.com/users/substancelab/events{/privacy}","received_events_url":"https://api.github.com/users/substancelab/received_events","type":"Organization","site_admin":false},"repo":{"id":62373908,"name":"pullhub","full_name":"substancelab/pullhub","owner":{"login":"substancelab","id":2912227,"avatar_url":"https://avatars.githubusercontent.com/u/2912227?v=3","gravatar_id":"","url":"https://api.github.com/users/substancelab","html_url":"https://github.com/substancelab","followers_url":"https://api.github.com/users/substancelab/followers","following_url":"https://api.github.com/users/substancelab/following{/other_user}","gists_url":"https://api.github.com/users/substancelab/gists{/gist_id}","starred_url":"https://api.github.com/users/substancelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/substancelab/subscriptions","organizations_url":"https://api.github.com/users/substancelab/orgs","repos_url":"https://api.github.com/users/substancelab/repos","events_url":"https://api.github.com/users/substancelab/events{/privacy}","received_events_url":"https://api.github.com/users/substancelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/substancelab/pullhub","description":null,"fork":false,"url":"https://api.github.com/repos/substancelab/pullhub","forks_url":"https://api.github.com/repos/substancelab/pullhub/forks","keys_url":"https://api.github.com/repos/substancelab/pullhub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/substancelab/pullhub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/substancelab/pullhub/teams","hooks_url":"https://api.github.com/repos/substancelab/pullhub/hooks","issue_events_url":"https://api.github.com/repos/substancelab/pullhub/issues/events{/number}","events_url":"https://api.github.com/repos/substancelab/pullhub/events","assignees_url":"https://api.github.com/repos/substancelab/pullhub/assignees{/user}","branches_url":"https://api.github.com/repos/substancelab/pullhub/branches{/branch}","tags_url":"https://api.github.com/repos/substancelab/pullhub/tags","blobs_url":"https://api.github.com/repos/substancelab/pullhub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/substancelab/pullhub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/substancelab/pullhub/git/refs{/sha}","trees_url":"https://api.github.com/repos/substancelab/pullhub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/substancelab/pullhub/statuses/{sha}","languages_url":"https://api.github.com/repos/substancelab/pullhub/languages","stargazers_url":"https://api.github.com/repos/substancelab/pullhub/stargazers","contributors_url":"https://api.github.com/repos/substancelab/pullhub/contributors","subscribers_url":"https://api.github.com/repos/substancelab/pullhub/subscribers","subscription_url":"https://api.github.com/repos/substancelab/pullhub/subscription","commits_url":"https://api.github.com/repos/substancelab/pullhub/commits{/sha}","git_commits_url":"https://api.github.com/repos/substancelab/pullhub/git/commits{/sha}","comments_url":"https://api.github.com/repos/substancelab/pullhub/comments{/number}","issue_comment_url":"https://api.github.com/repos/substancelab/pullhub/issues/comments{/number}","contents_url":"https://api.github.com/repos/substancelab/pullhub/contents/{+path}","compare_url":"https://api.github.com/repos/substancelab/pullhub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/substancelab/pullhub/merges","archive_url":"https://api.github.com/repos/substancelab/pullhub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/substancelab/pullhub/downloads","issues_url":"https://api.github.com/repos/substancelab/pullhub/issues{/number}","pulls_url":"https://api.github.com/repos/substancelab/pullhub/pulls{/number}","milestones_url":"https://api.github.com/repos/substancelab/pullhub/milestones{/number}","notifications_url":"https://api.github.com/repos/substancelab/pullhub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/substancelab/pullhub/labels{/name}","releases_url":"https://api.github.com/repos/substancelab/pullhub/releases{/id}","deployments_url":"https://api.github.com/repos/substancelab/pullhub/deployments","created_at":"2016-07-01T07:32:26Z","updated_at":"2016-11-04T20:42:10Z","pushed_at":"2016-11-11T12:56:01Z","git_url":"git://github.com/substancelab/pullhub.git","ssh_url":"git@github.com:substancelab/pullhub.git","clone_url":"https://github.com/substancelab/pullhub.git","svn_url":"https://github.com/substancelab/pullhub","homepage":null,"size":780,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"substancelab:master","ref":"master","sha":"60a1e3125a04e16087f8ee33c746f4a5e9427763","user":{"login":"substancelab","id":2912227,"avatar_url":"https://avatars.githubusercontent.com/u/2912227?v=3","gravatar_id":"","url":"https://api.github.com/users/substancelab","html_url":"https://github.com/substancelab","followers_url":"https://api.github.com/users/substancelab/followers","following_url":"https://api.github.com/users/substancelab/following{/other_user}","gists_url":"https://api.github.com/users/substancelab/gists{/gist_id}","starred_url":"https://api.github.com/users/substancelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/substancelab/subscriptions","organizations_url":"https://api.github.com/users/substancelab/orgs","repos_url":"https://api.github.com/users/substancelab/repos","events_url":"https://api.github.com/users/substancelab/events{/privacy}","received_events_url":"https://api.github.com/users/substancelab/received_events","type":"Organization","site_admin":false},"repo":{"id":62373908,"name":"pullhub","full_name":"substancelab/pullhub","owner":{"login":"substancelab","id":2912227,"avatar_url":"https://avatars.githubusercontent.com/u/2912227?v=3","gravatar_id":"","url":"https://api.github.com/users/substancelab","html_url":"https://github.com/substancelab","followers_url":"https://api.github.com/users/substancelab/followers","following_url":"https://api.github.com/users/substancelab/following{/other_user}","gists_url":"https://api.github.com/users/substancelab/gists{/gist_id}","starred_url":"https://api.github.com/users/substancelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/substancelab/subscriptions","organizations_url":"https://api.github.com/users/substancelab/orgs","repos_url":"https://api.github.com/users/substancelab/repos","events_url":"https://api.github.com/users/substancelab/events{/privacy}","received_events_url":"https://api.github.com/users/substancelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/substancelab/pullhub","description":null,"fork":false,"url":"https://api.github.com/repos/substancelab/pullhub","forks_url":"https://api.github.com/repos/substancelab/pullhub/forks","keys_url":"https://api.github.com/repos/substancelab/pullhub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/substancelab/pullhub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/substancelab/pullhub/teams","hooks_url":"https://api.github.com/repos/substancelab/pullhub/hooks","issue_events_url":"https://api.github.com/repos/substancelab/pullhub/issues/events{/number}","events_url":"https://api.github.com/repos/substancelab/pullhub/events","assignees_url":"https://api.github.com/repos/substancelab/pullhub/assignees{/user}","branches_url":"https://api.github.com/repos/substancelab/pullhub/branches{/branch}","tags_url":"https://api.github.com/repos/substancelab/pullhub/tags","blobs_url":"https://api.github.com/repos/substancelab/pullhub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/substancelab/pullhub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/substancelab/pullhub/git/refs{/sha}","trees_url":"https://api.github.com/repos/substancelab/pullhub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/substancelab/pullhub/statuses/{sha}","languages_url":"https://api.github.com/repos/substancelab/pullhub/languages","stargazers_url":"https://api.github.com/repos/substancelab/pullhub/stargazers","contributors_url":"https://api.github.com/repos/substancelab/pullhub/contributors","subscribers_url":"https://api.github.com/repos/substancelab/pullhub/subscribers","subscription_url":"https://api.github.com/repos/substancelab/pullhub/subscription","commits_url":"https://api.github.com/repos/substancelab/pullhub/commits{/sha}","git_commits_url":"https://api.github.com/repos/substancelab/pullhub/git/commits{/sha}","comments_url":"https://api.github.com/repos/substancelab/pullhub/comments{/number}","issue_comment_url":"https://api.github.com/repos/substancelab/pullhub/issues/comments{/number}","contents_url":"https://api.github.com/repos/substancelab/pullhub/contents/{+path}","compare_url":"https://api.github.com/repos/substancelab/pullhub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/substancelab/pullhub/merges","archive_url":"https://api.github.com/repos/substancelab/pullhub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/substancelab/pullhub/downloads","issues_url":"https://api.github.com/repos/substancelab/pullhub/issues{/number}","pulls_url":"https://api.github.com/repos/substancelab/pullhub/pulls{/number}","milestones_url":"https://api.github.com/repos/substancelab/pullhub/milestones{/number}","notifications_url":"https://api.github.com/repos/substancelab/pullhub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/substancelab/pullhub/labels{/name}","releases_url":"https://api.github.com/repos/substancelab/pullhub/releases{/id}","deployments_url":"https://api.github.com/repos/substancelab/pullhub/deployments","created_at":"2016-07-01T07:32:26Z","updated_at":"2016-11-04T20:42:10Z","pushed_at":"2016-11-11T12:56:01Z","git_url":"git://github.com/substancelab/pullhub.git","ssh_url":"git@github.com:substancelab/pullhub.git","clone_url":"https://github.com/substancelab/pullhub.git","svn_url":"https://github.com/substancelab/pullhub","homepage":null,"size":780,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/substancelab/pullhub/pulls/23"},"html":{"href":"https://github.com/substancelab/pullhub/pull/23"},"issue":{"href":"https://api.github.com/repos/substancelab/pullhub/issues/23"},"comments":{"href":"https://api.github.com/repos/substancelab/pullhub/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/substancelab/pullhub/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/substancelab/pullhub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/substancelab/pullhub/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/substancelab/pullhub/statuses/058d5b3f4ca5c963694c346a5506835fe6b70f6d"}}}}
{"actor":{"display_login":"olepalm"}}