public WebSocketHelper(SenparcWebSocketHubBase hub, CancellationToken cancellationToken) { WebSocket = hub; #endif _cancellationToken = cancellationToken; }
/// <summary> /// WebSocketHelper /// </summary> ///// <param name="webSocketContext"></param> /// <param name="cancellationToken"></param> #if NET45 public WebSocketHelper(System.Net.WebSockets.WebSocket socket, /*AspNetWebSocketContext webSocketContext,*/ CancellationToken cancellationToken) { WebSocket = socket;