public void SendText(string text) { if (closed) { throw new WebSocketException("Session already closed"); } Write(OpCode.Text, Encoding.UTF8.GetBytes(text)); }