RawStreamSession
Defined in: src/client/raw.ts:43
A streaming call driven one encoded batch at a time.
Mirrors StreamSession turn for turn, but every payload is a RawBatch rather than decoded rows. Obtained from RpcClient.streamRaw.
Properties
Section titled “Properties”rawHeader
Section titled “rawHeader”readonly rawHeader: RawBatch | null;Defined in: src/client/raw.ts:45
The stream’s header batch, or null when the method declares none.
Methods
Section titled “Methods”cancel()
Section titled “cancel()”cancel(): Promise<void>;Defined in: src/client/raw.ts:67
Ask the server to stop producing and release the stream’s state.
Best-effort and idempotent: transport failures are swallowed, and the session is finished either way.
Returns
Section titled “Returns”Promise<void>
close()
Section titled “close()”close(): void;Defined in: src/client/raw.ts:69
Release the stream without cancelling it.
Returns
Section titled “Returns”void
exchangeRaw()
Section titled “exchangeRaw()”exchangeRaw(input): Promise<RawBatch | null>;Defined in: src/client/raw.ts:55
Send one batch (with its custom metadata) and return the reply.
Resolves to null when the server ended the stream instead of replying.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
RawBatch |
Returns
Section titled “Returns”Promise<RawBatch | null>
nextWithTokenRaw()
Section titled “nextWithTokenRaw()”nextWithTokenRaw(): Promise< | RawBatchWithToken| null>;Defined in: src/client/raw.ts:60
Pull the next producer batch together with the token that resumes the
stream after it. Resolves to null at end of stream.
Returns
Section titled “Returns”Promise<
| RawBatchWithToken
| null>
tickRaw()
Section titled “tickRaw()”tickRaw(metadata?): Promise<RawBatch | null>;Defined in: src/client/raw.ts:50
Pull the next batch from a producer stream, sending metadata as the
tick’s application custom metadata. Resolves to null at end of stream.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
metadata? |
ReadonlyMap<string, string> |
Returns
Section titled “Returns”Promise<RawBatch | null>
