Skip to content
tRPC

Partners

Function: httpBatchStreamLink()

On this page

httpBatchStreamLink<TRouter>(opts): TRPCLink<TRouter>

Defined in: packages/client/src/links/httpBatchStreamLink.ts:44

A terminating link that batches calls like httpBatchLink, but streams each response back as soon as it is ready.

Type Parameters

Type Parameter
TRouter extends AnyRouter

Parameters

ParameterType
optsHTTPBatchStreamLinkOptions<TRouter["_def"]["_config"]["$types"]>

Returns

TRPCLink<TRouter>

See

https://trpc.io/docs/client/links/httpBatchStreamLink