{"action":"created","comment":{"url":"https://api.github.com/repos/goonism/hyperproxy/pulls/comments/179934901","pull_request_review_id":110274391,"id":179934901,"diff_hunk":"@@ -28,11 +28,20 @@ class HyperproxyNode {\n \n     async _connectToHub(key) {\n         const client = new HyperproxyHubClient(w3cwebsocket, Wrtc)\n-        client.hub.subscribe(key).on('data', async ({sender, message}) => {\n+        client.hub.subscribe(key).on('data', async ({sender, message, type}) => {\n             try {\n+                if (type === 'response') {\n+                    return;\n+                }\n                 const file = await this.readFile(message);\n-                sender.emit(file);\n+                client.hub.broadcast(key, {\n+                    sender: client.swarm.me,\n+                    type: 'response',","path":"packages/hyperproxy-node/src/index.js","position":28,"original_position":28,"commit_id":"4fffe6295c0e7401132cddb631d81ba48c30be73","original_commit_id":"4fffe6295c0e7401132cddb631d81ba48c30be73","user":{"login":"louisgv","id":6723574,"avatar_url":"https://avatars3.githubusercontent.com/u/6723574?v=4","gravatar_id":"","url":"https://api.github.com/users/louisgv","html_url":"https://github.com/louisgv","followers_url":"https://api.github.com/users/louisgv/followers","following_url":"https://api.github.com/users/louisgv/following{/other_user}","gists_url":"https://api.github.com/users/louisgv/gists{/gist_id}","starred_url":"https://api.github.com/users/louisgv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louisgv/subscriptions","organizations_url":"https://api.github.com/users/louisgv/orgs","repos_url":"https://api.github.com/users/louisgv/repos","events_url":"https://api.github.com/users/louisgv/events{/privacy}","received_events_url":"https://api.github.com/users/louisgv/received_events","type":"User","site_admin":false},"body":"Should refactor these into some kind of enum, maybe put it in the config module?","created_at":"2018-04-08T04:45:58Z","updated_at":"2018-04-08T04:46:34Z","html_url":"https://github.com/goonism/hyperproxy/pull/20#discussion_r179934901","pull_request_url":"https://api.github.com/repos/goonism/hyperproxy/pulls/20","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/goonism/hyperproxy/pulls/comments/179934901"},"html":{"href":"https://github.com/goonism/hyperproxy/pull/20#discussion_r179934901"},"pull_request":{"href":"https://api.github.com/repos/goonism/hyperproxy/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/goonism/hyperproxy/pulls/20","id":180134515,"html_url":"https://github.com/goonism/hyperproxy/pull/20","diff_url":"https://github.com/goonism/hyperproxy/pull/20.diff","patch_url":"https://github.com/goonism/hyperproxy/pull/20.patch","issue_url":"https://api.github.com/repos/goonism/hyperproxy/issues/20","number":20,"state":"open","locked":false,"title":"Add swarm and proxy functionality to hyperproxy node.","user":{"login":"ColdSauce","id":2267038,"avatar_url":"https://avatars3.githubusercontent.com/u/2267038?v=4","gravatar_id":"","url":"https://api.github.com/users/ColdSauce","html_url":"https://github.com/ColdSauce","followers_url":"https://api.github.com/users/ColdSauce/followers","following_url":"https://api.github.com/users/ColdSauce/following{/other_user}","gists_url":"https://api.github.com/users/ColdSauce/gists{/gist_id}","starred_url":"https://api.github.com/users/ColdSauce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColdSauce/subscriptions","organizations_url":"https://api.github.com/users/ColdSauce/orgs","repos_url":"https://api.github.com/users/ColdSauce/repos","events_url":"https://api.github.com/users/ColdSauce/events{/privacy}","received_events_url":"https://api.github.com/users/ColdSauce/received_events","type":"User","site_admin":false},"body":"\r\n\r\n| Q                        | A <!--(Can use an emoji 👍) -->\r\n| ------------------------ | ---\r\n| Fixed Issues?            |  #6 \r\n| Patch: Bug Fix?          | N\r\n| Major: Breaking Change?  | Y\r\n| Minor: New Feature?      | Y\r\n| Tests Added + Pass?      | Nope :) \r\n| Documentation PR         | <!-- If so, add `[skip ci]` to your commit message to skip CI -->\r\n| Any Dependency Changes?  | N\r\n| License                  | MIT\r\n\r\n<!-- Describe your changes below in as much detail as possible -->\r\n\r\nAdds swarm functionality to the HyperProxy node. This makes it possible for a browser using WebRTC to fetch any native Dat-node files it wants! :D ","created_at":"2018-04-08T01:55:52Z","updated_at":"2018-04-08T04:46:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a95cc905717247c5de614613d7010de1253ab074","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/goonism/hyperproxy/pulls/20/commits","review_comments_url":"https://api.github.com/repos/goonism/hyperproxy/pulls/20/comments","review_comment_url":"https://api.github.com/repos/goonism/hyperproxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/goonism/hyperproxy/issues/20/comments","statuses_url":"https://api.github.com/repos/goonism/hyperproxy/statuses/4fffe6295c0e7401132cddb631d81ba48c30be73","head":{"label":"goonism:@coldsauce/implement-swarm","ref":"@coldsauce/implement-swarm","sha":"4fffe6295c0e7401132cddb631d81ba48c30be73","user":{"login":"goonism","id":33411467,"avatar_url":"https://avatars0.githubusercontent.com/u/33411467?v=4","gravatar_id":"","url":"https://api.github.com/users/goonism","html_url":"https://github.com/goonism","followers_url":"https://api.github.com/users/goonism/followers","following_url":"https://api.github.com/users/goonism/following{/other_user}","gists_url":"https://api.github.com/users/goonism/gists{/gist_id}","starred_url":"https://api.github.com/users/goonism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goonism/subscriptions","organizations_url":"https://api.github.com/users/goonism/orgs","repos_url":"https://api.github.com/users/goonism/repos","events_url":"https://api.github.com/users/goonism/events{/privacy}","received_events_url":"https://api.github.com/users/goonism/received_events","type":"Organization","site_admin":false},"repo":{"id":122877463,"name":"hyperproxy","full_name":"goonism/hyperproxy","owner":{"login":"goonism","id":33411467,"avatar_url":"https://avatars0.githubusercontent.com/u/33411467?v=4","gravatar_id":"","url":"https://api.github.com/users/goonism","html_url":"https://github.com/goonism","followers_url":"https://api.github.com/users/goonism/followers","following_url":"https://api.github.com/users/goonism/following{/other_user}","gists_url":"https://api.github.com/users/goonism/gists{/gist_id}","starred_url":"https://api.github.com/users/goonism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goonism/subscriptions","organizations_url":"https://api.github.com/users/goonism/orgs","repos_url":"https://api.github.com/users/goonism/repos","events_url":"https://api.github.com/users/goonism/events{/privacy}","received_events_url":"https://api.github.com/users/goonism/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goonism/hyperproxy","description":"Hyperproxy is a hybrid proxy. It aims to establish the missing hybrid node that can establish connection from both native node and browser node","fork":false,"url":"https://api.github.com/repos/goonism/hyperproxy","forks_url":"https://api.github.com/repos/goonism/hyperproxy/forks","keys_url":"https://api.github.com/repos/goonism/hyperproxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goonism/hyperproxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goonism/hyperproxy/teams","hooks_url":"https://api.github.com/repos/goonism/hyperproxy/hooks","issue_events_url":"https://api.github.com/repos/goonism/hyperproxy/issues/events{/number}","events_url":"https://api.github.com/repos/goonism/hyperproxy/events","assignees_url":"https://api.github.com/repos/goonism/hyperproxy/assignees{/user}","branches_url":"https://api.github.com/repos/goonism/hyperproxy/branches{/branch}","tags_url":"https://api.github.com/repos/goonism/hyperproxy/tags","blobs_url":"https://api.github.com/repos/goonism/hyperproxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goonism/hyperproxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goonism/hyperproxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/goonism/hyperproxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goonism/hyperproxy/statuses/{sha}","languages_url":"https://api.github.com/repos/goonism/hyperproxy/languages","stargazers_url":"https://api.github.com/repos/goonism/hyperproxy/stargazers","contributors_url":"https://api.github.com/repos/goonism/hyperproxy/contributors","subscribers_url":"https://api.github.com/repos/goonism/hyperproxy/subscribers","subscription_url":"https://api.github.com/repos/goonism/hyperproxy/subscription","commits_url":"https://api.github.com/repos/goonism/hyperproxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/goonism/hyperproxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/goonism/hyperproxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/goonism/hyperproxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/goonism/hyperproxy/contents/{+path}","compare_url":"https://api.github.com/repos/goonism/hyperproxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goonism/hyperproxy/merges","archive_url":"https://api.github.com/repos/goonism/hyperproxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goonism/hyperproxy/downloads","issues_url":"https://api.github.com/repos/goonism/hyperproxy/issues{/number}","pulls_url":"https://api.github.com/repos/goonism/hyperproxy/pulls{/number}","milestones_url":"https://api.github.com/repos/goonism/hyperproxy/milestones{/number}","notifications_url":"https://api.github.com/repos/goonism/hyperproxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goonism/hyperproxy/labels{/name}","releases_url":"https://api.github.com/repos/goonism/hyperproxy/releases{/id}","deployments_url":"https://api.github.com/repos/goonism/hyperproxy/deployments","created_at":"2018-02-25T21:12:50Z","updated_at":"2018-04-07T23:16:42Z","pushed_at":"2018-04-08T04:42:35Z","git_url":"git://github.com/goonism/hyperproxy.git","ssh_url":"git@github.com:goonism/hyperproxy.git","clone_url":"https://github.com/goonism/hyperproxy.git","svn_url":"https://github.com/goonism/hyperproxy","homepage":"","size":302,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":8,"watchers":8,"default_branch":"master"}},"base":{"label":"goonism:master","ref":"master","sha":"41b606e07827b72f63fd1eab3d699958e11151cc","user":{"login":"goonism","id":33411467,"avatar_url":"https://avatars0.githubusercontent.com/u/33411467?v=4","gravatar_id":"","url":"https://api.github.com/users/goonism","html_url":"https://github.com/goonism","followers_url":"https://api.github.com/users/goonism/followers","following_url":"https://api.github.com/users/goonism/following{/other_user}","gists_url":"https://api.github.com/users/goonism/gists{/gist_id}","starred_url":"https://api.github.com/users/goonism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goonism/subscriptions","organizations_url":"https://api.github.com/users/goonism/orgs","repos_url":"https://api.github.com/users/goonism/repos","events_url":"https://api.github.com/users/goonism/events{/privacy}","received_events_url":"https://api.github.com/users/goonism/received_events","type":"Organization","site_admin":false},"repo":{"id":122877463,"name":"hyperproxy","full_name":"goonism/hyperproxy","owner":{"login":"goonism","id":33411467,"avatar_url":"https://avatars0.githubusercontent.com/u/33411467?v=4","gravatar_id":"","url":"https://api.github.com/users/goonism","html_url":"https://github.com/goonism","followers_url":"https://api.github.com/users/goonism/followers","following_url":"https://api.github.com/users/goonism/following{/other_user}","gists_url":"https://api.github.com/users/goonism/gists{/gist_id}","starred_url":"https://api.github.com/users/goonism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goonism/subscriptions","organizations_url":"https://api.github.com/users/goonism/orgs","repos_url":"https://api.github.com/users/goonism/repos","events_url":"https://api.github.com/users/goonism/events{/privacy}","received_events_url":"https://api.github.com/users/goonism/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goonism/hyperproxy","description":"Hyperproxy is a hybrid proxy. It aims to establish the missing hybrid node that can establish connection from both native node and browser node","fork":false,"url":"https://api.github.com/repos/goonism/hyperproxy","forks_url":"https://api.github.com/repos/goonism/hyperproxy/forks","keys_url":"https://api.github.com/repos/goonism/hyperproxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goonism/hyperproxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goonism/hyperproxy/teams","hooks_url":"https://api.github.com/repos/goonism/hyperproxy/hooks","issue_events_url":"https://api.github.com/repos/goonism/hyperproxy/issues/events{/number}","events_url":"https://api.github.com/repos/goonism/hyperproxy/events","assignees_url":"https://api.github.com/repos/goonism/hyperproxy/assignees{/user}","branches_url":"https://api.github.com/repos/goonism/hyperproxy/branches{/branch}","tags_url":"https://api.github.com/repos/goonism/hyperproxy/tags","blobs_url":"https://api.github.com/repos/goonism/hyperproxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goonism/hyperproxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goonism/hyperproxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/goonism/hyperproxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goonism/hyperproxy/statuses/{sha}","languages_url":"https://api.github.com/repos/goonism/hyperproxy/languages","stargazers_url":"https://api.github.com/repos/goonism/hyperproxy/stargazers","contributors_url":"https://api.github.com/repos/goonism/hyperproxy/contributors","subscribers_url":"https://api.github.com/repos/goonism/hyperproxy/subscribers","subscription_url":"https://api.github.com/repos/goonism/hyperproxy/subscription","commits_url":"https://api.github.com/repos/goonism/hyperproxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/goonism/hyperproxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/goonism/hyperproxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/goonism/hyperproxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/goonism/hyperproxy/contents/{+path}","compare_url":"https://api.github.com/repos/goonism/hyperproxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goonism/hyperproxy/merges","archive_url":"https://api.github.com/repos/goonism/hyperproxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goonism/hyperproxy/downloads","issues_url":"https://api.github.com/repos/goonism/hyperproxy/issues{/number}","pulls_url":"https://api.github.com/repos/goonism/hyperproxy/pulls{/number}","milestones_url":"https://api.github.com/repos/goonism/hyperproxy/milestones{/number}","notifications_url":"https://api.github.com/repos/goonism/hyperproxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goonism/hyperproxy/labels{/name}","releases_url":"https://api.github.com/repos/goonism/hyperproxy/releases{/id}","deployments_url":"https://api.github.com/repos/goonism/hyperproxy/deployments","created_at":"2018-02-25T21:12:50Z","updated_at":"2018-04-07T23:16:42Z","pushed_at":"2018-04-08T04:42:35Z","git_url":"git://github.com/goonism/hyperproxy.git","ssh_url":"git@github.com:goonism/hyperproxy.git","clone_url":"https://github.com/goonism/hyperproxy.git","svn_url":"https://github.com/goonism/hyperproxy","homepage":"","size":302,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":8,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/goonism/hyperproxy/pulls/20"},"html":{"href":"https://github.com/goonism/hyperproxy/pull/20"},"issue":{"href":"https://api.github.com/repos/goonism/hyperproxy/issues/20"},"comments":{"href":"https://api.github.com/repos/goonism/hyperproxy/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/goonism/hyperproxy/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/goonism/hyperproxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/goonism/hyperproxy/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/goonism/hyperproxy/statuses/4fffe6295c0e7401132cddb631d81ba48c30be73"}},"author_association":"OWNER"}}
{"actor":{"display_login":"louisgv"}}