Exemplo n.º 1
0
 /// <summary>
 /// Receive message from web socket server
 /// </summary>
 /// <param name="message"></param>
 public void ReceiveMessage(String message)
 {
     try
     {
         DeviceProxyManager.Bind(_deviceProxy);
         var response = _deviceProxy.ProcessReceiveEvent(message);
         SendMessage(response);
     }
     catch (Exception ex)
     {
         Log.Error(ex);
         SendMessage(ex.Message);
     }
 }