private void WebSocketConnectionOnDataRecived(object sender, SimpleEventArgs <byte[]> webSocketEventArgs)
        {
            Command command = ByteArrayToObject <Command>(webSocketEventArgs.Value);

            OnReceivedCommand(command);
        }
 private void WebSocketConnectionOnConnectionStateChanged(object sender, SimpleEventArgs <bool> webSocketEventArgs)
 {
     ConnectionStateChangedEvent.Invoke(_webSocketConnection, webSocketEventArgs);
 }