public void SendPong() { if (closed) { throw new WebSocketException("Session already closed"); } Write(OpCode.Pong); }