I'm using the following code to receive the frame string.
private SubscriberSocket subSocket;
void Start()
{
subSocket = new SubscriberSocket();
subSocket.Connect("tcp://localhost:5555");
}
void Update()
{
string data = subSocket.ReceiveFrameString();
}
The problem with this code is that the unity application freezes when no data is being received from the client. How can I stop the application from freezing when there isn't any data being received?