TsgcWebSocketClientProperties › WriteTimeout

WriteTimeout Property

Maximum duration in milliseconds for sending data to the other peer.

Syntax

property WriteTimeout: Integer read FWriteTimeout write FWriteTimeout;

Default Value

0

Remarks

A value of 0 disables the write timeout and matches the default operating-system behaviour. Positive values abort the send operation when an outgoing buffer cannot be flushed within the specified number of milliseconds. This property only takes effect on Windows.

Example


oClient := TsgcWebSocketClient.Create(nil);
oClient.URL := 'wss://www.esegece.com:2053';
oClient.WriteTimeout := 10000;
oClient.Active := true;

Back to Properties