public WebSocketServerConnection(TcpClient aClient, WebSocketServer aParent)
     : base(aClient)
 {
     fRequireMask = true;
       fParent = aParent;
 }
 protected override void Close()
 {
     if (fParent != null)
       {
     fParent.SafeRemoveConnection(this);
     fParent = null;
     base.Close();
       }
 }
Beispiel #3
0
 private void HandleAfterAddConnection(WebSocketServer aServer, WebSocketServerConnection aConnection)
 {
     aConnection.ConnectionOpen += HandleConnectionOpen;
     aConnection.ConnectionRead += HandleConnectionRead;
     aConnection.ConnectionClose += HandleConnectionClose;
 }