Skip to main content
Version: Next

ServerSendEventForwardOptions <T, CTX>

Options for forwarding async iterable SDK streams as Server-Sent Events.

Index

Properties

optionalabortController

abortController?: AbortController

Abort controller for the upstream SDK request.

optionalcloseEvent

closeEvent?: string | false

Event name emitted when generic EventSource forwarding completes.

optionalprotocol

Protocol-compatible SSE framing strategy.

optionaltransform

transform?: (chunk: T, ctx: CTX) => T | Promise<T>

Transform or drop chunks before they are serialized.