public void AddFlexor(string bluetoothDeviceName, int region, int pin) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.AddFlexor(bluetoothDeviceName, region, pin)); } }