payload: {"action":"created","comment":{"url":"https://api.github.com/repos/c4dt/omniledger/pulls/comments/318979397","pull_request_review_id":281339108,"id":318979397,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxODk3OTM5Nw==","diff_hunk":"@@ -172,21 +173,22 @@ export class ServerIdentity extends Message<ServerIdentity> {\n      */\n     static urlToWebsocket(url: string): string {\n         const urlParser = new URL(url);\n+        let proto = \"\";\n         switch (urlParser.protocol) {\n             case \"http:\": {\n-                urlParser.protocol = \"ws:\";\n+                proto = \"ws:\";\n                 break;\n             }\n             case \"https:\": {\n-                urlParser.protocol = \"wss:\";\n+                proto = \"wss:\";\n                 break;\n             }\n             default : {\n                 throw new Error(\"The url field should use either 'http:' or 'https:', but we found \"\n                     + urlParser.protocol);","path":"mobile/app/lib/cothority/network/proto.ts","position":26,"original_position":26,"commit_id":"d17da40a872d3d5b12c61b8f999dc478066416b5","original_commit_id":"d17da40a872d3d5b12c61b8f999dc478066416b5","user":{"login":"tharvik","id":5735566,"node_id":"MDQ6VXNlcjU3MzU1NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/5735566?v=4","gravatar_id":"","url":"https://api.github.com/users/tharvik","html_url":"https://github.com/tharvik","followers_url":"https://api.github.com/users/tharvik/followers","following_url":"https://api.github.com/users/tharvik/following{/other_user}","gists_url":"https://api.github.com/users/tharvik/gists{/gist_id}","starred_url":"https://api.github.com/users/tharvik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tharvik/subscriptions","organizations_url":"https://api.github.com/users/tharvik/orgs","repos_url":"https://api.github.com/users/tharvik/repos","events_url":"https://api.github.com/users/tharvik/events{/privacy}","received_events_url":"https://api.github.com/users/tharvik/received_events","type":"User","site_admin":false},"body":"Oups, you're correct","created_at":"2019-08-29T09:42:53Z","updated_at":"2019-08-29T09:42:54Z","html_url":"https://github.com/c4dt/omniledger/pull/74#discussion_r318979397","pull_request_url":"https://api.github.com/repos/c4dt/omniledger/pulls/74","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/c4dt/omniledger/pulls/comments/318979397"},"html":{"href":"https://github.com/c4dt/omniledger/pull/74#discussion_r318979397"},"pull_request":{"href":"https://api.github.com/repos/c4dt/omniledger/pulls/74"}},"in_reply_to_id":318975034},"pull_request":{"url":"https://api.github.com/repos/c4dt/omniledger/pulls/74","id":312224194,"node_id":"MDExOlB1bGxSZXF1ZXN0MzEyMjI0MTk0","html_url":"https://github.com/c4dt/omniledger/pull/74","diff_url":"https://github.com/c4dt/omniledger/pull/74.diff","patch_url":"https://github.com/c4dt/omniledger/pull/74.patch","issue_url":"https://api.github.com/repos/c4dt/omniledger/issues/74","number":74,"state":"open","locked":false,"title":"Using url-parse also in cothority-ts","user":{"login":"ineiti","id":1545067,"node_id":"MDQ6VXNlcjE1NDUwNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1545067?v=4","gravatar_id":"","url":"https://api.github.com/users/ineiti","html_url":"https://github.com/ineiti","followers_url":"https://api.github.com/users/ineiti/followers","following_url":"https://api.github.com/users/ineiti/following{/other_user}","gists_url":"https://api.github.com/users/ineiti/gists{/gist_id}","starred_url":"https://api.github.com/users/ineiti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ineiti/subscriptions","organizations_url":"https://api.github.com/users/ineiti/orgs","repos_url":"https://api.github.com/users/ineiti/repos","events_url":"https://api.github.com/users/ineiti/events{/privacy}","received_events_url":"https://api.github.com/users/ineiti/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-08-29T09:26:32Z","updated_at":"2019-08-29T09:42:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d351c7eb6f993453066281b44d2104f1ffe92f8c","assignee":{"login":"ineiti","id":1545067,"node_id":"MDQ6VXNlcjE1NDUwNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1545067?v=4","gravatar_id":"","url":"https://api.github.com/users/ineiti","html_url":"https://github.com/ineiti","followers_url":"https://api.github.com/users/ineiti/followers","following_url":"https://api.github.com/users/ineiti/following{/other_user}","gists_url":"https://api.github.com/users/ineiti/gists{/gist_id}","starred_url":"https://api.github.com/users/ineiti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ineiti/subscriptions","organizations_url":"https://api.github.com/users/ineiti/orgs","repos_url":"https://api.github.com/users/ineiti/repos","events_url":"https://api.github.com/users/ineiti/events{/privacy}","received_events_url":"https://api.github.com/users/ineiti/received_events","type":"User","site_admin":false},"assignees":[{"login":"ineiti","id":1545067,"node_id":"MDQ6VXNlcjE1NDUwNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1545067?v=4","gravatar_id":"","url":"https://api.github.com/users/ineiti","html_url":"https://github.com/ineiti","followers_url":"https://api.github.com/users/ineiti/followers","following_url":"https://api.github.com/users/ineiti/following{/other_user}","gists_url":"https://api.github.com/users/ineiti/gists{/gist_id}","starred_url":"https://api.github.com/users/ineiti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ineiti/subscriptions","organizations_url":"https://api.github.com/users/ineiti/orgs","repos_url":"https://api.github.com/users/ineiti/repos","events_url":"https://api.github.com/users/ineiti/events{/privacy}","received_events_url":"https://api.github.com/users/ineiti/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/c4dt/omniledger/pulls/74/commits","review_comments_url":"https://api.github.com/repos/c4dt/omniledger/pulls/74/comments","review_comment_url":"https://api.github.com/repos/c4dt/omniledger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/c4dt/omniledger/issues/74/comments","statuses_url":"https://api.github.com/repos/c4dt/omniledger/statuses/d17da40a872d3d5b12c61b8f999dc478066416b5","head":{"label":"c4dt:replace_url","ref":"replace_url","sha":"d17da40a872d3d5b12c61b8f999dc478066416b5","user":{"login":"c4dt","id":38249599,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MjQ5NTk5","avatar_url":"https://avatars1.githubusercontent.com/u/38249599?v=4","gravatar_id":"","url":"https://api.github.com/users/c4dt","html_url":"https://github.com/c4dt","followers_url":"https://api.github.com/users/c4dt/followers","following_url":"https://api.github.com/users/c4dt/following{/other_user}","gists_url":"https://api.github.com/users/c4dt/gists{/gist_id}","starred_url":"https://api.github.com/users/c4dt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c4dt/subscriptions","organizations_url":"https://api.github.com/users/c4dt/orgs","repos_url":"https://api.github.com/users/c4dt/repos","events_url":"https://api.github.com/users/c4dt/events{/privacy}","received_events_url":"https://api.github.com/users/c4dt/received_events","type":"Organization","site_admin":false},"repo":{"id":187231324,"node_id":"MDEwOlJlcG9zaXRvcnkxODcyMzEzMjQ=","name":"omniledger","full_name":"c4dt/omniledger","private":false,"owner":{"login":"c4dt","id":38249599,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MjQ5NTk5","avatar_url":"https://avatars1.githubusercontent.com/u/38249599?v=4","gravatar_id":"","url":"https://api.github.com/users/c4dt","html_url":"https://github.com/c4dt","followers_url":"https://api.github.com/users/c4dt/followers","following_url":"https://api.github.com/users/c4dt/following{/other_user}","gists_url":"https://api.github.com/users/c4dt/gists{/gist_id}","starred_url":"https://api.github.com/users/c4dt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c4dt/subscriptions","organizations_url":"https://api.github.com/users/c4dt/orgs","repos_url":"https://api.github.com/users/c4dt/repos","events_url":"https://api.github.com/users/c4dt/events{/privacy}","received_events_url":"https://api.github.com/users/c4dt/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/c4dt/omniledger","description":"Frontend for the dedis/cothority blockchain with an accent on identity and consent-management","fork":false,"url":"https://api.github.com/repos/c4dt/omniledger","forks_url":"https://api.github.com/repos/c4dt/omniledger/forks","keys_url":"https://api.github.com/repos/c4dt/omniledger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/c4dt/omniledger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/c4dt/omniledger/teams","hooks_url":"https://api.github.com/repos/c4dt/omniledger/hooks","issue_events_url":"https://api.github.com/repos/c4dt/omniledger/issues/events{/number}","events_url":"https://api.github.com/repos/c4dt/omniledger/events","assignees_url":"https://api.github.com/repos/c4dt/omniledger/assignees{/user}","branches_url":"https://api.github.com/repos/c4dt/omniledger/branches{/branch}","tags_url":"https://api.github.com/repos/c4dt/omniledger/tags","blobs_url":"https://api.github.com/repos/c4dt/omniledger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/c4dt/omniledger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/c4dt/omniledger/git/refs{/sha}","trees_url":"https://api.github.com/repos/c4dt/omniledger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/c4dt/omniledger/statuses/{sha}","languages_url":"https://api.github.com/repos/c4dt/omniledger/languages","stargazers_url":"https://api.github.com/repos/c4dt/omniledger/stargazers","contributors_url":"https://api.github.com/repos/c4dt/omniledger/contributors","subscribers_url":"https://api.github.com/repos/c4dt/omniledger/subscribers","subscription_url":"https://api.github.com/repos/c4dt/omniledger/subscription","commits_url":"https://api.github.com/repos/c4dt/omniledger/commits{/sha}","git_commits_url":"https://api.github.com/repos/c4dt/omniledger/git/commits{/sha}","comments_url":"https://api.github.com/repos/c4dt/omniledger/comments{/number}","issue_comment_url":"https://api.github.com/repos/c4dt/omniledger/issues/comments{/number}","contents_url":"https://api.github.com/repos/c4dt/omniledger/contents/{+path}","compare_url":"https://api.github.com/repos/c4dt/omniledger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/c4dt/omniledger/merges","archive_url":"https://api.github.com/repos/c4dt/omniledger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/c4dt/omniledger/downloads","issues_url":"https://api.github.com/repos/c4dt/omniledger/issues{/number}","pulls_url":"https://api.github.com/repos/c4dt/omniledger/pulls{/number}","milestones_url":"https://api.github.com/repos/c4dt/omniledger/milestones{/number}","notifications_url":"https://api.github.com/repos/c4dt/omniledger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/c4dt/omniledger/labels{/name}","releases_url":"https://api.github.com/repos/c4dt/omniledger/releases{/id}","deployments_url":"https://api.github.com/repos/c4dt/omniledger/deployments","created_at":"2019-05-17T14:32:43Z","updated_at":"2019-08-28T09:37:52Z","pushed_at":"2019-08-29T09:40:46Z","git_url":"git://github.com/c4dt/omniledger.git","ssh_url":"git@github.com:c4dt/omniledger.git","clone_url":"https://github.com/c4dt/omniledger.git","svn_url":"https://github.com/c4dt/omniledger","homepage":null,"size":7526,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":12,"license":null,"forks":2,"open_issues":12,"watchers":2,"default_branch":"master"}},"base":{"label":"c4dt:mobile","ref":"mobile","sha":"7f2c0c5a1e96a1633261a08e073506932c968408","user":{"login":"c4dt","id":38249599,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MjQ5NTk5","avatar_url":"https://avatars1.githubusercontent.com/u/38249599?v=4","gravatar_id":"","url":"https://api.github.com/users/c4dt","html_url":"https://github.com/c4dt","followers_url":"https://api.github.com/users/c4dt/followers","following_url":"https://api.github.com/users/c4dt/following{/other_user}","gists_url":"https://api.github.com/users/c4dt/gists{/gist_id}","starred_url":"https://api.github.com/users/c4dt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c4dt/subscriptions","organizations_url":"https://api.github.com/users/c4dt/orgs","repos_url":"https://api.github.com/users/c4dt/repos","events_url":"https://api.github.com/users/c4dt/events{/privacy}","received_events_url":"https://api.github.com/users/c4dt/received_events","type":"Organization","site_admin":false},"repo":{"id":187231324,"node_id":"MDEwOlJlcG9zaXRvcnkxODcyMzEzMjQ=","name":"omniledger","full_name":"c4dt/omniledger","private":false,"owner":{"login":"c4dt","id":38249599,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MjQ5NTk5","avatar_url":"https://avatars1.githubusercontent.com/u/38249599?v=4","gravatar_id":"","url":"https://api.github.com/users/c4dt","html_url":"https://github.com/c4dt","followers_url":"https://api.github.com/users/c4dt/followers","following_url":"https://api.github.com/users/c4dt/following{/other_user}","gists_url":"https://api.github.com/users/c4dt/gists{/gist_id}","starred_url":"https://api.github.com/users/c4dt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c4dt/subscriptions","organizations_url":"https://api.github.com/users/c4dt/orgs","repos_url":"https://api.github.com/users/c4dt/repos","events_url":"https://api.github.com/users/c4dt/events{/privacy}","received_events_url":"https://api.github.com/users/c4dt/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/c4dt/omniledger","description":"Frontend for the dedis/cothority blockchain with an accent on identity and consent-management","fork":false,"url":"https://api.github.com/repos/c4dt/omniledger","forks_url":"https://api.github.com/repos/c4dt/omniledger/forks","keys_url":"https://api.github.com/repos/c4dt/omniledger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/c4dt/omniledger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/c4dt/omniledger/teams","hooks_url":"https://api.github.com/repos/c4dt/omniledger/hooks","issue_events_url":"https://api.github.com/repos/c4dt/omniledger/issues/events{/number}","events_url":"https://api.github.com/repos/c4dt/omniledger/events","assignees_url":"https://api.github.com/repos/c4dt/omniledger/assignees{/user}","branches_url":"https://api.github.com/repos/c4dt/omniledger/branches{/branch}","tags_url":"https://api.github.com/repos/c4dt/omniledger/tags","blobs_url":"https://api.github.com/repos/c4dt/omniledger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/c4dt/omniledger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/c4dt/omniledger/git/refs{/sha}","trees_url":"https://api.github.com/repos/c4dt/omniledger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/c4dt/omniledger/statuses/{sha}","languages_url":"https://api.github.com/repos/c4dt/omniledger/languages","stargazers_url":"https://api.github.com/repos/c4dt/omniledger/stargazers","contributors_url":"https://api.github.com/repos/c4dt/omniledger/contributors","subscribers_url":"https://api.github.com/repos/c4dt/omniledger/subscribers","subscription_url":"https://api.github.com/repos/c4dt/omniledger/subscription","commits_url":"https://api.github.com/repos/c4dt/omniledger/commits{/sha}","git_commits_url":"https://api.github.com/repos/c4dt/omniledger/git/commits{/sha}","comments_url":"https://api.github.com/repos/c4dt/omniledger/comments{/number}","issue_comment_url":"https://api.github.com/repos/c4dt/omniledger/issues/comments{/number}","contents_url":"https://api.github.com/repos/c4dt/omniledger/contents/{+path}","compare_url":"https://api.github.com/repos/c4dt/omniledger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/c4dt/omniledger/merges","archive_url":"https://api.github.com/repos/c4dt/omniledger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/c4dt/omniledger/downloads","issues_url":"https://api.github.com/repos/c4dt/omniledger/issues{/number}","pulls_url":"https://api.github.com/repos/c4dt/omniledger/pulls{/number}","milestones_url":"https://api.github.com/repos/c4dt/omniledger/milestones{/number}","notifications_url":"https://api.github.com/repos/c4dt/omniledger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/c4dt/omniledger/labels{/name}","releases_url":"https://api.github.com/repos/c4dt/omniledger/releases{/id}","deployments_url":"https://api.github.com/repos/c4dt/omniledger/deployments","created_at":"2019-05-17T14:32:43Z","updated_at":"2019-08-28T09:37:52Z","pushed_at":"2019-08-29T09:40:46Z","git_url":"git://github.com/c4dt/omniledger.git","ssh_url":"git@github.com:c4dt/omniledger.git","clone_url":"https://github.com/c4dt/omniledger.git","svn_url":"https://github.com/c4dt/omniledger","homepage":null,"size":7526,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":12,"license":null,"forks":2,"open_issues":12,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/c4dt/omniledger/pulls/74"},"html":{"href":"https://github.com/c4dt/omniledger/pull/74"},"issue":{"href":"https://api.github.com/repos/c4dt/omniledger/issues/74"},"comments":{"href":"https://api.github.com/repos/c4dt/omniledger/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/c4dt/omniledger/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/c4dt/omniledger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/c4dt/omniledger/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/c4dt/omniledger/statuses/d17da40a872d3d5b12c61b8f999dc478066416b5"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"tharvik"}}