Пример #1
0
        private void WebSocketConnectionOnDataRecived(object sender, SimpleEventArgs <byte[]> webSocketEventArgs)
        {
            Command command = ByteArrayToObject <Command>(webSocketEventArgs.Value);

            OnReceivedCommand(command);
        }
Пример #2
0
 private void WebSocketConnectionOnConnectionStateChanged(object sender, SimpleEventArgs <bool> webSocketEventArgs)
 {
     ConnectionStateChangedEvent.Invoke(_webSocketConnection, webSocketEventArgs);
 }