Skip to content

SSEConfig

Defined in: packages/core/src/data/streaming/sse-connection.ts:19

Configuration for SSE connections.

Server-Sent Events (SSE) is a server push technology enabling a client to receive automatic updates from a server via an HTTP connection.

SSE is unidirectional (server to client only) and automatically handles reconnection when the connection is lost.

PropertyTypeDescriptionInherited fromDefined in
eventTypes?string[]Event types to listen for (default: [‘message’]) Remarks The EventSource API can listen for custom event types sent by the server. By default, it listens to the ‘message’ event type. Example eventTypes: ['update', 'delete', 'create']-packages/core/src/data/streaming/sse-connection.ts:32
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
withCredentials?booleanInclude credentials in CORS requests (default: false) Remarks When true, the EventSource will include credentials (cookies, authorization headers, etc.) when making cross-origin requests.-packages/core/src/data/streaming/sse-connection.ts:41