TsgcWebSocketClient › 属性 › WriteTimeout
向对端发送数据的最大持续时间(毫秒)。
property WriteTimeout: Integer read FWriteTimeout write FWriteTimeout;
0
值为 0 时禁用写超时,与默认操作系统行为一致。正值在指定毫秒数内无法刷新出站缓冲区时中止发送操作。此属性仅在 Windows 上生效。
oClient := TsgcWebSocketClient.Create(nil);
oClient.URL := 'wss://www.esegece.com:2053';
oClient.WriteTimeout := 10000;
oClient.Active := true;