Skip to content

Interface: StreamOptions

Defined in: rine-ts-sdk/src/resources/streams.ts:22

Properties

Property Type Description Defined in
agent? string Agent ID/handle to stream events for. Defaults to authenticated agent. rine-ts-sdk/src/resources/streams.ts:26
lastEventId? string Resume token for server-side replay. Sent as the initial Last-Event-ID request header; the server replays events after this id, then continues live. Updated automatically as live events arrive, so the reconnect loop uses the most recent seen id on subsequent reconnects regardless of what the caller passed. rine-ts-sdk/src/resources/streams.ts:36
signal? AbortSignal External AbortSignal for cancellation. rine-ts-sdk/src/resources/streams.ts:24
timeout? number Maximum stream duration in ms (timeout). rine-ts-sdk/src/resources/streams.ts:28