Пример #1
0
 public Task <WebSocket> AcceptWebSocketAsync() => fWebSocket.AcceptAsync(null);
 public async Task<WebSocket> AcceptAsync(WebSocketAcceptContext context)
 {
     var socket = new SockJsWebSocket(await _feature.AcceptAsync(context));
     await socket.OpenAsync(CancellationToken.None);
     return socket;
 }