TsgcWebSocketClient › Properties › ReadTimeout
Maximum time in milliseconds the client waits for incoming data before raising a read timeout.
property ReadTimeout: Integer read FReadTimeout write FReadTimeout;
-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 := TsgcWebSocketClient.Create(nil);
oClient.URL := 'wss://www.esegece.com:2053';
oClient.ReadTimeout := 30000;
oClient.Active := true;