Example #1
0
 public string Receive()
 {
     if (IsConnected == true)
     {
         var response = _urSocket.Receive();
         return(IDashboardPackage.Unpack(response).TrimEnd('\n'));;
     }
     return("");
 }
Example #2
0
 public void Send(string command)
 {
     if (IsConnected == true)
     {
         command += '\n';
         var package = IDashboardPackage.Pack(command);
         _urSocket.Send(package);
     }
 }