tRPCttRPC
Powered by
BrainlaqB
tRPC•12mo 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.
HTTP Batch Stream Link | tRPC
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
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Streaming responses (eg. for streaming ai chat completion text)
sebSseb / ❓-help
3y ago
v11 Streaming responses for file uploads
sebSseb / ❓-help
3w ago
is there a way to send a streaming response
DerockDDerock / ❓-help
3y ago