internal WebSocketHandlerProxy(Stream stream, WebSocketCommunicationHandler handler, ComposableHandler websocketHandler) { this._networkStream = stream; this._handler = handler; this._websocketHandler = websocketHandler; CurrentProxy = this; HandleConnection(); }
/// <summary> /// Adds a WebSocketCommunicationHandler to all listening Servers. /// </summary> /// <param name="webSocketCommunicationHandler">the WebSocketCommunicationHandler</param> public static void AddWebsocketHandler(WebSocketCommunicationHandler webSocketCommunicationHandler) { AddWebsocketHandlerEvent(webSocketCommunicationHandler); }