tencent cloud

Performance Testing Service

WS

PDF
Focus Mode
Font Size
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,
}
}


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback