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