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
Name | Type |
---|---|
resolvedOpts | ResolvedHTTPLinkOptions |
runtime | TRPCClientRuntime |
type | "query" | "mutation" | "subscription" |
opts | HttpBatchLinkOptions |
Returns
Function
Signature
ts
(batchOps: Operation<unknown>[], unitResolver: Function): object;
ts
(batchOps: Operation<unknown>[], unitResolver: Function): object;
Parameters
Name | Type |
---|---|
batchOps | Operation <unknown >[] |
unitResolver | (index : number , value : HTTPResult ) => void |
Returns
object
Member | Type |
---|---|
cancel | CancelFn |
promise | Promise <{ json : any ; meta : { response : ResponseEsque ; }; }[]> |
Defined in: packages/client/src/links/httpBatchLink.ts:20