{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/WebSockets/pulls/comments/70678459","id":70678459,"diff_hunk":"@@ -0,0 +1,53 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Net.WebSockets;\n+using System.Threading;\n+using System.Threading.Tasks;\n+using System.Web;\n+\n+namespace AutobahnTestAppAspNet4\n+{\n+    /// <summary>\n+    /// Summary description for EchoSocket\n+    /// </summary>\n+    public class EchoSocket : IHttpHandler\n+    {\n+\n+        public void ProcessRequest(HttpContext context)\n+        {\n+            if (context.IsWebSocketRequest)\n+            {\n+                context.AcceptWebSocketRequest(async socketContext =>\n+                {\n+                    await Echo(socketContext.WebSocket);\n+                });\n+            }\n+            else\n+            {\n+                context.Response.Write(\"Ready to accept WebSocket request at: \" + context.Request.Url.ToString().Replace(\"https://\", \"wss://\").Replace(\"http://\", \"ws://\"));\n+                context.Response.Flush();\n+            }\n+        }\n+\n+        private async Task Echo(WebSocket webSocket)\n+        {\n+            byte[] buffer = new byte[1024 * 4];","path":"samples/AutobahnTestAppAspNet4/EchoSocket.ashx.cs","position":35,"original_position":35,"commit_id":"8a34a6b7f734742bf931cfe8af865e04d1455ea0","original_commit_id":"8a34a6b7f734742bf931cfe8af865e04d1455ea0","user":{"login":"cesarbs","id":924164,"avatar_url":"https://avatars.githubusercontent.com/u/924164?v=3","gravatar_id":"","url":"https://api.github.com/users/cesarbs","html_url":"https://github.com/cesarbs","followers_url":"https://api.github.com/users/cesarbs/followers","following_url":"https://api.github.com/users/cesarbs/following{/other_user}","gists_url":"https://api.github.com/users/cesarbs/gists{/gist_id}","starred_url":"https://api.github.com/users/cesarbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesarbs/subscriptions","organizations_url":"https://api.github.com/users/cesarbs/orgs","repos_url":"https://api.github.com/users/cesarbs/repos","events_url":"https://api.github.com/users/cesarbs/events{/privacy}","received_events_url":"https://api.github.com/users/cesarbs/received_events","type":"User","site_admin":false},"body":"var?","created_at":"2016-07-13T18:10:49Z","updated_at":"2016-07-13T18:10:49Z","html_url":"https://github.com/aspnet/WebSockets/pull/101#discussion_r70678459","pull_request_url":"https://api.github.com/repos/aspnet/WebSockets/pulls/101","_links":{"self":{"href":"https://api.github.com/repos/aspnet/WebSockets/pulls/comments/70678459"},"html":{"href":"https://github.com/aspnet/WebSockets/pull/101#discussion_r70678459"},"pull_request":{"href":"https://api.github.com/repos/aspnet/WebSockets/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/WebSockets/pulls/101","id":77334031,"html_url":"https://github.com/aspnet/WebSockets/pull/101","diff_url":"https://github.com/aspnet/WebSockets/pull/101.diff","patch_url":"https://github.com/aspnet/WebSockets/pull/101.patch","issue_url":"https://api.github.com/repos/aspnet/WebSockets/issues/101","number":101,"state":"open","locked":false,"title":"Automate the autobahn test suite","user":{"login":"anurse","id":7574,"avatar_url":"https://avatars.githubusercontent.com/u/7574?v=3","gravatar_id":"","url":"https://api.github.com/users/anurse","html_url":"https://github.com/anurse","followers_url":"https://api.github.com/users/anurse/followers","following_url":"https://api.github.com/users/anurse/following{/other_user}","gists_url":"https://api.github.com/users/anurse/gists{/gist_id}","starred_url":"https://api.github.com/users/anurse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anurse/subscriptions","organizations_url":"https://api.github.com/users/anurse/orgs","repos_url":"https://api.github.com/users/anurse/repos","events_url":"https://api.github.com/users/anurse/events{/privacy}","received_events_url":"https://api.github.com/users/anurse/received_events","type":"User","site_admin":false},"body":"However, we only run that automation if the Autobahn test suite runner\r\n(wstest) is installed. After this is in and we can verify it on the CI\r\nwe'll look at making it mandatory for building the repo.\r\n\r\nAlso includes test applications and scripts for running Autobahn suites\r\nagainst arbitrary ASP.NET 4.6, ASP.NET Core and HttpListener\r\napplications.\r\n\r\nPart of #95 (but not complete).\r\n\r\n/cc @Tratcher ","created_at":"2016-07-13T18:01:59Z","updated_at":"2016-07-13T18:10:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"663decd68ab88f2956f937431e1ef68057c8a5fd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/WebSockets/pulls/101/commits","review_comments_url":"https://api.github.com/repos/aspnet/WebSockets/pulls/101/comments","review_comment_url":"https://api.github.com/repos/aspnet/WebSockets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/WebSockets/issues/101/comments","statuses_url":"https://api.github.com/repos/aspnet/WebSockets/statuses/8a34a6b7f734742bf931cfe8af865e04d1455ea0","head":{"label":"aspnet:anurse/autobahn-suite","ref":"anurse/autobahn-suite","sha":"8a34a6b7f734742bf931cfe8af865e04d1455ea0","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":17656062,"name":"WebSockets","full_name":"aspnet/WebSockets","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/WebSockets","description":"Implementation of the WebSocket protocol, along with client and server integration components.","fork":false,"url":"https://api.github.com/repos/aspnet/WebSockets","forks_url":"https://api.github.com/repos/aspnet/WebSockets/forks","keys_url":"https://api.github.com/repos/aspnet/WebSockets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/WebSockets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/WebSockets/teams","hooks_url":"https://api.github.com/repos/aspnet/WebSockets/hooks","issue_events_url":"https://api.github.com/repos/aspnet/WebSockets/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/WebSockets/events","assignees_url":"https://api.github.com/repos/aspnet/WebSockets/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/WebSockets/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/WebSockets/tags","blobs_url":"https://api.github.com/repos/aspnet/WebSockets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/WebSockets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/WebSockets/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/WebSockets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/WebSockets/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/WebSockets/languages","stargazers_url":"https://api.github.com/repos/aspnet/WebSockets/stargazers","contributors_url":"https://api.github.com/repos/aspnet/WebSockets/contributors","subscribers_url":"https://api.github.com/repos/aspnet/WebSockets/subscribers","subscription_url":"https://api.github.com/repos/aspnet/WebSockets/subscription","commits_url":"https://api.github.com/repos/aspnet/WebSockets/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/WebSockets/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/WebSockets/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/WebSockets/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/WebSockets/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/WebSockets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/WebSockets/merges","archive_url":"https://api.github.com/repos/aspnet/WebSockets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/WebSockets/downloads","issues_url":"https://api.github.com/repos/aspnet/WebSockets/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/WebSockets/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/WebSockets/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/WebSockets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/WebSockets/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/WebSockets/releases{/id}","deployments_url":"https://api.github.com/repos/aspnet/WebSockets/deployments","created_at":"2014-03-12T05:08:47Z","updated_at":"2016-07-09T19:34:46Z","pushed_at":"2016-07-13T18:01:59Z","git_url":"git://github.com/aspnet/WebSockets.git","ssh_url":"git@github.com:aspnet/WebSockets.git","clone_url":"https://github.com/aspnet/WebSockets.git","svn_url":"https://github.com/aspnet/WebSockets","homepage":"","size":703,"stargazers_count":156,"watchers_count":156,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":25,"forks":52,"open_issues":25,"watchers":156,"default_branch":"dev"}},"base":{"label":"aspnet:dev","ref":"dev","sha":"80437e878ad1a97c80e103b3e68289f2a780ba5e","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":17656062,"name":"WebSockets","full_name":"aspnet/WebSockets","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/WebSockets","description":"Implementation of the WebSocket protocol, along with client and server integration components.","fork":false,"url":"https://api.github.com/repos/aspnet/WebSockets","forks_url":"https://api.github.com/repos/aspnet/WebSockets/forks","keys_url":"https://api.github.com/repos/aspnet/WebSockets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/WebSockets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/WebSockets/teams","hooks_url":"https://api.github.com/repos/aspnet/WebSockets/hooks","issue_events_url":"https://api.github.com/repos/aspnet/WebSockets/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/WebSockets/events","assignees_url":"https://api.github.com/repos/aspnet/WebSockets/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/WebSockets/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/WebSockets/tags","blobs_url":"https://api.github.com/repos/aspnet/WebSockets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/WebSockets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/WebSockets/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/WebSockets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/WebSockets/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/WebSockets/languages","stargazers_url":"https://api.github.com/repos/aspnet/WebSockets/stargazers","contributors_url":"https://api.github.com/repos/aspnet/WebSockets/contributors","subscribers_url":"https://api.github.com/repos/aspnet/WebSockets/subscribers","subscription_url":"https://api.github.com/repos/aspnet/WebSockets/subscription","commits_url":"https://api.github.com/repos/aspnet/WebSockets/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/WebSockets/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/WebSockets/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/WebSockets/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/WebSockets/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/WebSockets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/WebSockets/merges","archive_url":"https://api.github.com/repos/aspnet/WebSockets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/WebSockets/downloads","issues_url":"https://api.github.com/repos/aspnet/WebSockets/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/WebSockets/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/WebSockets/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/WebSockets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/WebSockets/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/WebSockets/releases{/id}","deployments_url":"https://api.github.com/repos/aspnet/WebSockets/deployments","created_at":"2014-03-12T05:08:47Z","updated_at":"2016-07-09T19:34:46Z","pushed_at":"2016-07-13T18:01:59Z","git_url":"git://github.com/aspnet/WebSockets.git","ssh_url":"git@github.com:aspnet/WebSockets.git","clone_url":"https://github.com/aspnet/WebSockets.git","svn_url":"https://github.com/aspnet/WebSockets","homepage":"","size":703,"stargazers_count":156,"watchers_count":156,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":25,"forks":52,"open_issues":25,"watchers":156,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/WebSockets/pulls/101"},"html":{"href":"https://github.com/aspnet/WebSockets/pull/101"},"issue":{"href":"https://api.github.com/repos/aspnet/WebSockets/issues/101"},"comments":{"href":"https://api.github.com/repos/aspnet/WebSockets/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/WebSockets/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/WebSockets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/WebSockets/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/WebSockets/statuses/8a34a6b7f734742bf931cfe8af865e04d1455ea0"}}}}
{"actor":{"display_login":"cesarbs"}}