private Task ProcessWebsocketSession(AspNetWebSocketContext context) { ChatWebSocketHandler handler = new ChatWebSocketHandler("a"); var processTask = handler.ProcessWebSocketRequestAsync(context); return(processTask); }
public HttpResponseMessage getTradeContribs(string manifest) { ChatWebSocketHandler handler = new ChatWebSocketHandler("null"); handler.OnMessage(manifest); return(Request.CreateResponse(HttpStatusCode.SwitchingProtocols)); }