tencent cloud

Tencent Cloud Observability Platform

WS

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 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,
}
}


Ajuda e Suporte

Esta página foi útil?

comentários