Skip to main content
Version: 10.x

unstable_streamRequester()

Example

ts
httpBatchLink({
requester: streamRequester,
})
ts
httpBatchLink({
requester: streamRequester,
})

Signature

ts
unstable_streamRequester(
resolvedOpts: ResolvedHTTPLinkOptions,
runtime: TRPCClientRuntime,
type: "query" | "mutation" | "subscription",
opts: HttpBatchLinkOptions): Function;
ts
unstable_streamRequester(
resolvedOpts: ResolvedHTTPLinkOptions,
runtime: TRPCClientRuntime,
type: "query" | "mutation" | "subscription",
opts: HttpBatchLinkOptions): Function;

Parameters

NameType
resolvedOptsResolvedHTTPLinkOptions
runtimeTRPCClientRuntime
type"query" | "mutation" | "subscription"
optsHttpBatchLinkOptions

Returns

Function

Signature

ts
(batchOps: Operation<unknown>[], unitResolver: Function): object;
ts
(batchOps: Operation<unknown>[], unitResolver: Function): object;

Parameters

NameType
batchOpsOperation<unknown>[]
unitResolver(index: number, value: HTTPResult) => void

Returns

object

MemberType
cancelCancelFn
promisePromise<{ json: any; meta: { response: ResponseEsque; }; }[]>

Defined in: packages/client/src/links/httpBatchLink.ts:20