public WsController() { if (_webSocketHandler == null) { _webSocketHandler = new TestWebSocketHandler("WSNAME"); } }
private async Task ProcessWebSocketRequest(AspNetWebSocketContext context) { var sessionCookie = context.Cookies["SessionId"]; if (sessionCookie != null) { var wsHandler = new TestWebSocketHandler(sessionCookie.Value); await wsHandler.ProcessWebSocketRequestAsync(context); } }