Skip to content

Interface: StreamOptions

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

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:32
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:42
peek? boolean Stream without marking messages delivered (default true). The server then leaves every streamed message new, so the caller acknowledges each one it has handled with markDelivered(); a message it never acknowledges is listed as new again, and a reconnect without a saved lastEventId re-sends up to 200 of them. Pass false to have the server mark each message delivered as it is sent. rine-ts-sdk/src/resources/streams.ts:51
signal? AbortSignal External AbortSignal for cancellation. rine-ts-sdk/src/resources/streams.ts:30
timeout? number Maximum stream duration in ms (timeout). rine-ts-sdk/src/resources/streams.ts:34