{"action":"created","comment":{"url":"https://api.github.com/repos/mono/mono/pulls/comments/232388675","pull_request_review_id":173584482,"id":232388675,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjM4ODY3NQ==","diff_hunk":"@@ -0,0 +1,75 @@\n+using System;\n+using System.Linq;\n+using System.Threading.Tasks;\n+using Newtonsoft.Json.Linq;\n+\n+using System.Net.WebSockets;\n+using System.Threading;\n+using System.IO;\n+using System.Text;\n+using System.Collections.Generic;\n+\n+namespace Mono.WebAssembly {\n+\tpublic class InspectorClient : WsClient {\n+\t\tList<(int, TaskCompletionSource<Result>)> pending_cmds = new List<(int, TaskCompletionSource<Result>)> ();\n+\t\tFunc<string, JObject, CancellationToken, Task> onEvent;\n+\t\tint next_cmd_id;\n+\n+\t\tTask HandleMessage (string msg, CancellationToken token)\n+\t\t{\n+\t\t\tvar res = JObject.Parse (msg);\n+\t\t\tif (res [\"id\"] == null)\n+\t\t\t\tDumpProtocol (string.Format(\"Event method: {0} params: {1}\", res [\"method\"], res [\"params\"]));\n+\t\t\telse\n+\t\t\t\tDumpProtocol (string.Format (\"Response id: {0} res: {1}\", res [\"id\"], res));\n+\n+\t\t\tif (res [\"id\"] == null)\n+\t\t\t\treturn onEvent (res [\"method\"].Value<string> (), res [\"params\"] as JObject, token);","path":"sdks/wasm/Mono.WebAssembly.DebuggerProxy/InspectorClient.cs","position":27,"original_position":27,"commit_id":"826596ab05cf1f7a365f763dd892b5ed6d34896e","original_commit_id":"826596ab05cf1f7a365f763dd892b5ed6d34896e","user":{"login":"kg","id":198130,"node_id":"MDQ6VXNlcjE5ODEzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/198130?v=4","gravatar_id":"","url":"https://api.github.com/users/kg","html_url":"https://github.com/kg","followers_url":"https://api.github.com/users/kg/followers","following_url":"https://api.github.com/users/kg/following{/other_user}","gists_url":"https://api.github.com/users/kg/gists{/gist_id}","starred_url":"https://api.github.com/users/kg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kg/subscriptions","organizations_url":"https://api.github.com/users/kg/orgs","repos_url":"https://api.github.com/users/kg/repos","events_url":"https://api.github.com/users/kg/events{/privacy}","received_events_url":"https://api.github.com/users/kg/received_events","type":"User","site_admin":false},"body":"move into if statement above? not important though","created_at":"2018-11-09T20:46:51Z","updated_at":"2018-11-09T20:46:51Z","html_url":"https://github.com/mono/mono/pull/11310#discussion_r232388675","pull_request_url":"https://api.github.com/repos/mono/mono/pulls/11310","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/mono/mono/pulls/comments/232388675"},"html":{"href":"https://github.com/mono/mono/pull/11310#discussion_r232388675"},"pull_request":{"href":"https://api.github.com/repos/mono/mono/pulls/11310"}}},"pull_request":{"url":"https://api.github.com/repos/mono/mono/pulls/11310","id":224734743,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NzM0NzQz","html_url":"https://github.com/mono/mono/pull/11310","diff_url":"https://github.com/mono/mono/pull/11310.diff","patch_url":"https://github.com/mono/mono/pull/11310.patch","issue_url":"https://api.github.com/repos/mono/mono/issues/11310","number":11310,"state":"open","locked":false,"title":"[wasm] Add test suite.","user":{"login":"kumpera","id":5738,"node_id":"MDQ6VXNlcjU3Mzg=","avatar_url":"https://avatars0.githubusercontent.com/u/5738?v=4","gravatar_id":"","url":"https://api.github.com/users/kumpera","html_url":"https://github.com/kumpera","followers_url":"https://api.github.com/users/kumpera/followers","following_url":"https://api.github.com/users/kumpera/following{/other_user}","gists_url":"https://api.github.com/users/kumpera/gists{/gist_id}","starred_url":"https://api.github.com/users/kumpera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumpera/subscriptions","organizations_url":"https://api.github.com/users/kumpera/orgs","repos_url":"https://api.github.com/users/kumpera/repos","events_url":"https://api.github.com/users/kumpera/events{/privacy}","received_events_url":"https://api.github.com/users/kumpera/received_events","type":"User","site_admin":false},"body":null,"created_at":"2018-10-22T16:22:18Z","updated_at":"2018-11-09T20:46:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e20c09d1db2e5abde4f4379d955fb7855a3ce486","assignee":null,"assignees":[],"requested_reviewers":[{"login":"vargaz","id":186301,"node_id":"MDQ6VXNlcjE4NjMwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/186301?v=4","gravatar_id":"","url":"https://api.github.com/users/vargaz","html_url":"https://github.com/vargaz","followers_url":"https://api.github.com/users/vargaz/followers","following_url":"https://api.github.com/users/vargaz/following{/other_user}","gists_url":"https://api.github.com/users/vargaz/gists{/gist_id}","starred_url":"https://api.github.com/users/vargaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vargaz/subscriptions","organizations_url":"https://api.github.com/users/vargaz/orgs","repos_url":"https://api.github.com/users/vargaz/repos","events_url":"https://api.github.com/users/vargaz/events{/privacy}","received_events_url":"https://api.github.com/users/vargaz/received_events","type":"User","site_admin":false},{"login":"kjpou1","id":640466,"node_id":"MDQ6VXNlcjY0MDQ2Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/640466?v=4","gravatar_id":"","url":"https://api.github.com/users/kjpou1","html_url":"https://github.com/kjpou1","followers_url":"https://api.github.com/users/kjpou1/followers","following_url":"https://api.github.com/users/kjpou1/following{/other_user}","gists_url":"https://api.github.com/users/kjpou1/gists{/gist_id}","starred_url":"https://api.github.com/users/kjpou1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjpou1/subscriptions","organizations_url":"https://api.github.com/users/kjpou1/orgs","repos_url":"https://api.github.com/users/kjpou1/repos","events_url":"https://api.github.com/users/kjpou1/events{/privacy}","received_events_url":"https://api.github.com/users/kjpou1/received_events","type":"User","site_admin":false},{"login":"alexischr","id":1048813,"node_id":"MDQ6VXNlcjEwNDg4MTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1048813?v=4","gravatar_id":"","url":"https://api.github.com/users/alexischr","html_url":"https://github.com/alexischr","followers_url":"https://api.github.com/users/alexischr/followers","following_url":"https://api.github.com/users/alexischr/following{/other_user}","gists_url":"https://api.github.com/users/alexischr/gists{/gist_id}","starred_url":"https://api.github.com/users/alexischr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexischr/subscriptions","organizations_url":"https://api.github.com/users/alexischr/orgs","repos_url":"https://api.github.com/users/alexischr/repos","events_url":"https://api.github.com/users/alexischr/events{/privacy}","received_events_url":"https://api.github.com/users/alexischr/received_events","type":"User","site_admin":false},{"login":"akoeplinger","id":1376924,"node_id":"MDQ6VXNlcjEzNzY5MjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1376924?v=4","gravatar_id":"","url":"https://api.github.com/users/akoeplinger","html_url":"https://github.com/akoeplinger","followers_url":"https://api.github.com/users/akoeplinger/followers","following_url":"https://api.github.com/users/akoeplinger/following{/other_user}","gists_url":"https://api.github.com/users/akoeplinger/gists{/gist_id}","starred_url":"https://api.github.com/users/akoeplinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akoeplinger/subscriptions","organizations_url":"https://api.github.com/users/akoeplinger/orgs","repos_url":"https://api.github.com/users/akoeplinger/repos","events_url":"https://api.github.com/users/akoeplinger/events{/privacy}","received_events_url":"https://api.github.com/users/akoeplinger/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mono/mono/pulls/11310/commits","review_comments_url":"https://api.github.com/repos/mono/mono/pulls/11310/comments","review_comment_url":"https://api.github.com/repos/mono/mono/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mono/mono/issues/11310/comments","statuses_url":"https://api.github.com/repos/mono/mono/statuses/826596ab05cf1f7a365f763dd892b5ed6d34896e","head":{"label":"kumpera:wasm-test-suite","ref":"wasm-test-suite","sha":"826596ab05cf1f7a365f763dd892b5ed6d34896e","user":{"login":"kumpera","id":5738,"node_id":"MDQ6VXNlcjU3Mzg=","avatar_url":"https://avatars0.githubusercontent.com/u/5738?v=4","gravatar_id":"","url":"https://api.github.com/users/kumpera","html_url":"https://github.com/kumpera","followers_url":"https://api.github.com/users/kumpera/followers","following_url":"https://api.github.com/users/kumpera/following{/other_user}","gists_url":"https://api.github.com/users/kumpera/gists{/gist_id}","starred_url":"https://api.github.com/users/kumpera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumpera/subscriptions","organizations_url":"https://api.github.com/users/kumpera/orgs","repos_url":"https://api.github.com/users/kumpera/repos","events_url":"https://api.github.com/users/kumpera/events{/privacy}","received_events_url":"https://api.github.com/users/kumpera/received_events","type":"User","site_admin":false},"repo":{"id":793663,"node_id":"MDEwOlJlcG9zaXRvcnk3OTM2NjM=","name":"mono","full_name":"kumpera/mono","private":false,"owner":{"login":"kumpera","id":5738,"node_id":"MDQ6VXNlcjU3Mzg=","avatar_url":"https://avatars0.githubusercontent.com/u/5738?v=4","gravatar_id":"","url":"https://api.github.com/users/kumpera","html_url":"https://github.com/kumpera","followers_url":"https://api.github.com/users/kumpera/followers","following_url":"https://api.github.com/users/kumpera/following{/other_user}","gists_url":"https://api.github.com/users/kumpera/gists{/gist_id}","starred_url":"https://api.github.com/users/kumpera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumpera/subscriptions","organizations_url":"https://api.github.com/users/kumpera/orgs","repos_url":"https://api.github.com/users/kumpera/repos","events_url":"https://api.github.com/users/kumpera/events{/privacy}","received_events_url":"https://api.github.com/users/kumpera/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kumpera/mono","description":"Home of the Mono runtime, the Mono C# compiler, and the Mono class libraries.","fork":true,"url":"https://api.github.com/repos/kumpera/mono","forks_url":"https://api.github.com/repos/kumpera/mono/forks","keys_url":"https://api.github.com/repos/kumpera/mono/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kumpera/mono/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kumpera/mono/teams","hooks_url":"https://api.github.com/repos/kumpera/mono/hooks","issue_events_url":"https://api.github.com/repos/kumpera/mono/issues/events{/number}","events_url":"https://api.github.com/repos/kumpera/mono/events","assignees_url":"https://api.github.com/repos/kumpera/mono/assignees{/user}","branches_url":"https://api.github.com/repos/kumpera/mono/branches{/branch}","tags_url":"https://api.github.com/repos/kumpera/mono/tags","blobs_url":"https://api.github.com/repos/kumpera/mono/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kumpera/mono/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kumpera/mono/git/refs{/sha}","trees_url":"https://api.github.com/repos/kumpera/mono/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kumpera/mono/statuses/{sha}","languages_url":"https://api.github.com/repos/kumpera/mono/languages","stargazers_url":"https://api.github.com/repos/kumpera/mono/stargazers","contributors_url":"https://api.github.com/repos/kumpera/mono/contributors","subscribers_url":"https://api.github.com/repos/kumpera/mono/subscribers","subscription_url":"https://api.github.com/repos/kumpera/mono/subscription","commits_url":"https://api.github.com/repos/kumpera/mono/commits{/sha}","git_commits_url":"https://api.github.com/repos/kumpera/mono/git/commits{/sha}","comments_url":"https://api.github.com/repos/kumpera/mono/comments{/number}","issue_comment_url":"https://api.github.com/repos/kumpera/mono/issues/comments{/number}","contents_url":"https://api.github.com/repos/kumpera/mono/contents/{+path}","compare_url":"https://api.github.com/repos/kumpera/mono/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kumpera/mono/merges","archive_url":"https://api.github.com/repos/kumpera/mono/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kumpera/mono/downloads","issues_url":"https://api.github.com/repos/kumpera/mono/issues{/number}","pulls_url":"https://api.github.com/repos/kumpera/mono/pulls{/number}","milestones_url":"https://api.github.com/repos/kumpera/mono/milestones{/number}","notifications_url":"https://api.github.com/repos/kumpera/mono/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kumpera/mono/labels{/name}","releases_url":"https://api.github.com/repos/kumpera/mono/releases{/id}","deployments_url":"https://api.github.com/repos/kumpera/mono/deployments","created_at":"2010-07-23T17:31:15Z","updated_at":"2018-09-14T18:49:37Z","pushed_at":"2018-11-09T20:40:43Z","git_url":"git://github.com/kumpera/mono.git","ssh_url":"git@github.com:kumpera/mono.git","clone_url":"https://github.com/kumpera/mono.git","svn_url":"https://github.com/kumpera/mono","homepage":"http://www.mono-project.com/","size":485053,"stargazers_count":14,"watchers_count":14,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3,"open_issues":0,"watchers":14,"default_branch":"master"}},"base":{"label":"mono:master","ref":"master","sha":"02e71d52debf92840a2e1a234182ca1ce9ac2bf6","user":{"login":"mono","id":53395,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUzMzk1","avatar_url":"https://avatars3.githubusercontent.com/u/53395?v=4","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"repo":{"id":791611,"node_id":"MDEwOlJlcG9zaXRvcnk3OTE2MTE=","name":"mono","full_name":"mono/mono","private":false,"owner":{"login":"mono","id":53395,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUzMzk1","avatar_url":"https://avatars3.githubusercontent.com/u/53395?v=4","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mono/mono","description":"Mono open source ECMA CLI, C# and .NET implementation.","fork":false,"url":"https://api.github.com/repos/mono/mono","forks_url":"https://api.github.com/repos/mono/mono/forks","keys_url":"https://api.github.com/repos/mono/mono/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mono/mono/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mono/mono/teams","hooks_url":"https://api.github.com/repos/mono/mono/hooks","issue_events_url":"https://api.github.com/repos/mono/mono/issues/events{/number}","events_url":"https://api.github.com/repos/mono/mono/events","assignees_url":"https://api.github.com/repos/mono/mono/assignees{/user}","branches_url":"https://api.github.com/repos/mono/mono/branches{/branch}","tags_url":"https://api.github.com/repos/mono/mono/tags","blobs_url":"https://api.github.com/repos/mono/mono/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mono/mono/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mono/mono/git/refs{/sha}","trees_url":"https://api.github.com/repos/mono/mono/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mono/mono/statuses/{sha}","languages_url":"https://api.github.com/repos/mono/mono/languages","stargazers_url":"https://api.github.com/repos/mono/mono/stargazers","contributors_url":"https://api.github.com/repos/mono/mono/contributors","subscribers_url":"https://api.github.com/repos/mono/mono/subscribers","subscription_url":"https://api.github.com/repos/mono/mono/subscription","commits_url":"https://api.github.com/repos/mono/mono/commits{/sha}","git_commits_url":"https://api.github.com/repos/mono/mono/git/commits{/sha}","comments_url":"https://api.github.com/repos/mono/mono/comments{/number}","issue_comment_url":"https://api.github.com/repos/mono/mono/issues/comments{/number}","contents_url":"https://api.github.com/repos/mono/mono/contents/{+path}","compare_url":"https://api.github.com/repos/mono/mono/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mono/mono/merges","archive_url":"https://api.github.com/repos/mono/mono/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mono/mono/downloads","issues_url":"https://api.github.com/repos/mono/mono/issues{/number}","pulls_url":"https://api.github.com/repos/mono/mono/pulls{/number}","milestones_url":"https://api.github.com/repos/mono/mono/milestones{/number}","notifications_url":"https://api.github.com/repos/mono/mono/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mono/mono/labels{/name}","releases_url":"https://api.github.com/repos/mono/mono/releases{/id}","deployments_url":"https://api.github.com/repos/mono/mono/deployments","created_at":"2010-07-22T18:06:36Z","updated_at":"2018-11-09T20:14:51Z","pushed_at":"2018-11-09T20:40:47Z","git_url":"git://github.com/mono/mono.git","ssh_url":"git@github.com:mono/mono.git","clone_url":"https://github.com/mono/mono.git","svn_url":"https://github.com/mono/mono","homepage":"http://www.mono-project.com/","size":502543,"stargazers_count":7160,"watchers_count":7160,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":3025,"mirror_url":null,"archived":false,"open_issues_count":1040,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3025,"open_issues":1040,"watchers":7160,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mono/mono/pulls/11310"},"html":{"href":"https://github.com/mono/mono/pull/11310"},"issue":{"href":"https://api.github.com/repos/mono/mono/issues/11310"},"comments":{"href":"https://api.github.com/repos/mono/mono/issues/11310/comments"},"review_comments":{"href":"https://api.github.com/repos/mono/mono/pulls/11310/comments"},"review_comment":{"href":"https://api.github.com/repos/mono/mono/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mono/mono/pulls/11310/commits"},"statuses":{"href":"https://api.github.com/repos/mono/mono/statuses/826596ab05cf1f7a365f763dd892b5ed6d34896e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"kg"}}