Skip to content

RowsWithToken

Defined in: src/client/stream.ts:27

One producer batch’s rows paired with the continuation token that resumes the stream AFTER that batch. Returned by HttpStreamSession.nextWithToken.

rows: Record<string, any>[];

Defined in: src/client/stream.ts:29

The data batch’s rows.


token: string | null;

Defined in: src/client/stream.ts:40

The resume token continuing the stream after this batch — the worker’s own serialized producer state — or null when the producer emitted this batch as its final turn (no further continuation).

Since a stream’s state may travel as two tokens (call + cursor), this is the pair, packed into one opaque string by packResumeToken. Treat it as unstructured text; only HttpStreamSession.seekToToken and the client’s resumeStream need to know its shape.