TsgcWebSocketClient › Properties › ReadTimeout
Maximum time in milliseconds the client waits for incoming data before raising a read timeout.
public int ReadTimeout { get; set; }
-1 (infinite)
A value of -1 disables the timeout, letting the client block indefinitely while waiting for bytes to arrive. Setting a positive number of milliseconds causes the socket read call to return an error after the specified idle time; combine this with HeartBeat or WatchDog to detect half-open connections.
oClient = new TsgcWebSocketClient();
oClient.URL = "wss://www.esegece.com:2053";
oClient.ReadTimeout = 30000;
oClient.Active = true;