tencent cloud

Tencent Cloud Observability Platform

WS

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-03-11 19:41:09
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,
}
}


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백