Skip to main content

Interface: WebSocketOptions

Defined in: service-core/src/http/types.ts:174

WebSocket options shared by every router implementation. Names follow uWebSockets.js' WebSocketBehavior.

Indexable​

[key: string]: any

Properties​

idleTimeout?​

optional idleTimeout?: number

Defined in: service-core/src/http/types.ts:178

Seconds without any received data after which the connection is closed. 0 disables the timeout.


maxBackpressure?​

optional maxBackpressure?: number

Defined in: service-core/src/http/types.ts:180

Maximum number of bytes that may be queued for sending before further messages are dropped.


maxPayloadLength?​

optional maxPayloadLength?: number

Defined in: service-core/src/http/types.ts:176

Maximum size of a single incoming message, in bytes. A larger message closes the connection.