示例#1
0
        private Task ProcessWebsocketSession(AspNetWebSocketContext context)
        {
            ChatWebSocketHandler handler = new ChatWebSocketHandler("a");
            var processTask = handler.ProcessWebSocketRequestAsync(context);

            return(processTask);
        }
示例#2
0
        public HttpResponseMessage getTradeContribs(string manifest)
        {
            ChatWebSocketHandler handler = new ChatWebSocketHandler("null");

            handler.OnMessage(manifest);

            return(Request.CreateResponse(HttpStatusCode.SwitchingProtocols));
        }