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. |
export const option = {ws: {writeControlTimeout: 10000,handshakeTimeout: 10000,writeTimeout: 3000,readTimeout: 3000,}}