public void SendData(byte[] buffer) { if (connection == null || !connection.Connected) { return; } connection.Push(buffer, buffer.Length); }