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 Parameter | Description |
---|---|
T | The type of the events being streamed |