示例#1
0
        internal WebSocketHandlerProxy(Stream stream, WebSocketCommunicationHandler handler, ComposableHandler websocketHandler)
        {
            this._networkStream    = stream;
            this._handler          = handler;
            this._websocketHandler = websocketHandler;

            CurrentProxy = this;
            HandleConnection();
        }
示例#2
0
 /// <summary>
 /// Adds a WebSocketCommunicationHandler to all listening Servers.
 /// </summary>
 /// <param name="webSocketCommunicationHandler">the WebSocketCommunicationHandler</param>
 public static void AddWebsocketHandler(WebSocketCommunicationHandler webSocketCommunicationHandler)
 {
     AddWebsocketHandlerEvent(webSocketCommunicationHandler);
 }