Skip to content

WebSocketConfig

Defined in: packages/core/src/data/streaming/websocket-connection.ts:16

Configuration for WebSocket connections.

WebSocket provides full-duplex communication over a single TCP connection, enabling bidirectional data flow between client and server.

PropertyTypeDescriptionInherited fromDefined in
protocols?string | string[]WebSocket sub-protocols to use Remarks Sub-protocols allow the client and server to agree on a specific protocol on top of WebSocket. Can be a single string or array of strings. Example protocols: 'json' protocols: ['json', 'msgpack']-packages/core/src/data/streaming/websocket-connection.ts:30
reconnect?booleanEnable automatic reconnection on disconnect (default: true)ConnectionConfig.reconnectpackages/core/src/data/streaming/base-connection.ts:68
reconnectConfig?Partial<RetryConfig>Reconnection retry configurationConnectionConfig.reconnectConfigpackages/core/src/data/streaming/base-connection.ts:71
urlstringConnection URLConnectionConfig.urlpackages/core/src/data/streaming/base-connection.ts:65