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