Skip to content

Documentation / @eventkit/http / EventSourceResponseInit

Type Alias: EventSourceResponseInit<T>

ts
type EventSourceResponseInit<T> = ResponseInit & object;

Configuration options for creating an EventSourceResponse. Extends the standard ResponseInit interface with SSE-specific options.

Type declaration

sse?

ts
optional sse: EventSourceSerializerInit<T>;

Options for customizing how events are serialized into SSE format. If not provided, default serialization will be used.

Type Parameters

Type ParameterDescription
TThe type of the events being streamed

Released under the MIT License.