Created
November 30, 2014 19:24
-
-
Save devdays/d554b772eea2007ebb4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Web; | |
using Microsoft.Web.WebSockets; | |
namespace MyWebSocket | |
{ | |
public class ws : IHttpHandler | |
{ | |
public bool IsReusable | |
{ | |
get { return false; } | |
} | |
public void ProcessRequest(HttpContext context) | |
{ | |
if (context.IsWebSocketRequest) | |
context.AcceptWebSocketRequest(new MyWebSocketHandler()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment