BrainlaqB
tRPC11mo ago
1 reply
Brainlaq

get state of streaming response

Is there a way to get the state of a streaming response when using https://trpc.io/docs/client/links/httpBatchStreamLink and returning an async iterator?
"isPending" is false once the headers arrive and I did not find anything else.
unstable_httpBatchStreamLink is a terminating link that batches an array of individual tRPC operations into a single HTTP request that's sent to a single tRPC procedure (equivalent to httpBatchLink), but doesn't wait for all the responses of the batch to be ready and streams the responses as soon as any data is available.
HTTP Batch Stream Link | tRPC
Was this page helpful?