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();
       }
 }
示例#3
0
 private void HandleAfterAddConnection(WebSocketServer aServer, WebSocketServerConnection aConnection)
 {
     aConnection.ConnectionOpen += HandleConnectionOpen;
     aConnection.ConnectionRead += HandleConnectionRead;
     aConnection.ConnectionClose += HandleConnectionClose;
 }