TsgcWebSocketClientProperties › WriteTimeout

WriteTimeout Property

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

Syntax

public int WriteTimeout { get; set; }

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 = new TsgcWebSocketClient();
oClient.URL = "wss://www.esegece.com:2053";
oClient.WriteTimeout = 10000;
oClient.Active = true;

Back to Properties