tencent cloud

Last updated: 2025-03-10 17:04:46
WS
Last updated: 2025-03-10 17:04:46
WS is the ws configuration in the global parameter configuration Option.

Field

Field
Type
Description
writeControlTimeout?
number
Optional; the timeout period for writing control instructions in milliseconds, defaults to 10s.
handshakeTimeout?
number
Optional; the timeout period for handshaking in milliseconds, defaults to 30s.
writeTimeout?
number
Optional; the timeout period for writing messages in milliseconds, which has no limit by default.
readTimeout?
number
Optional; the timeout period for reading messages in milliseconds, which has no limit by default.

Samples

Use WS option:
export const option = {
ws: {
writeControlTimeout: 10000,
handshakeTimeout: 10000,
writeTimeout: 3000,
readTimeout: 3000,
}
}

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback