[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-trpc-links":3,"mdc--xdh8cr-key":37,"related-org-trpc-links":4848,"related-repo-trpc-links":5007},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":20,"repoUrl":21,"updatedAt":22,"license":23,"forks":24,"topics":25,"repo":32,"sourceUrl":35,"mdContent":36},"links","configure tRPC client link chains","Configure the tRPC client link chain: httpLink, httpBatchLink, httpBatchStreamLink, splitLink, loggerLink, wsLink, createWSClient, httpSubscriptionLink, unstable_localLink, retryLink. Choose the right terminating link. Route subscriptions via splitLink. Build custom links for SOA routing. Link options: url, headers, transformer, maxURLLength, maxItems, connectionParams, EventSource ponyfill.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"trpc","tRPC","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Ftrpc.png",[12,14,17],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"API Development","api-development",{"name":18,"slug":19,"type":13},"Frontend","frontend",40424,"https:\u002F\u002Fgithub.com\u002Ftrpc\u002Ftrpc","2026-07-18T05:47:06.847309",null,1636,[26,27,28,29,30,31],"api","next","nextjs","prisma","react","typescript",{"repoUrl":21,"stars":20,"forks":24,"topics":33,"description":34},[26,27,28,29,30,31],"🧙‍♀️  Move Fast and Break Nothing. End-to-end typesafe APIs made easy. ","https:\u002F\u002Fgithub.com\u002Ftrpc\u002Ftrpc\u002Ftree\u002FHEAD\u002Fpackages\u002Fclient\u002Fskills\u002Flinks","---\nname: links\ndescription: >\n  Configure the tRPC client link chain: httpLink, httpBatchLink,\n  httpBatchStreamLink, splitLink, loggerLink, wsLink, createWSClient,\n  httpSubscriptionLink, unstable_localLink, retryLink. Choose the right\n  terminating link. Route subscriptions via splitLink. Build custom links\n  for SOA routing. Link options: url, headers, transformer, maxURLLength,\n  maxItems, connectionParams, EventSource ponyfill.\ntype: core\nlibrary: trpc\nlibrary_version: '11.16.0'\nrequires:\n  - client-setup\nsources:\n  - www\u002Fdocs\u002Fclient\u002Flinks\u002Foverview.md\n  - www\u002Fdocs\u002Fclient\u002Flinks\u002FhttpLink.md\n  - www\u002Fdocs\u002Fclient\u002Flinks\u002FhttpBatchLink.md\n  - www\u002Fdocs\u002Fclient\u002Flinks\u002FhttpBatchStreamLink.md\n  - www\u002Fdocs\u002Fclient\u002Flinks\u002FsplitLink.mdx\n  - www\u002Fdocs\u002Fclient\u002Flinks\u002FwsLink.md\n  - www\u002Fdocs\u002Fclient\u002Flinks\u002FhttpSubscriptionLink.md\n  - www\u002Fdocs\u002Fclient\u002Flinks\u002FlocalLink.mdx\n  - www\u002Fdocs\u002Fclient\u002Flinks\u002FloggerLink.md\n  - packages\u002Fclient\u002Fsrc\u002Flinks\u002F\n---\n\n# tRPC -- Links\n\n## Setup\n\n```ts\nimport { createTRPCClient, httpBatchLink, loggerLink } from '@trpc\u002Fclient';\nimport type { AppRouter } from '.\u002Fserver';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    loggerLink(),\n    httpBatchLink({\n      url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n    }),\n  ],\n});\n```\n\nThe `links` array is a chain: non-terminating links (loggerLink, splitLink, retryLink) forward operations; the chain must end with a terminating link (httpBatchLink, httpLink, httpBatchStreamLink, wsLink, httpSubscriptionLink, unstable_localLink).\n\n## Core Patterns\n\n### httpBatchLink -- Batch Multiple Calls into One Request\n\n```ts\nimport { createTRPCClient, httpBatchLink } from '@trpc\u002Fclient';\nimport type { AppRouter } from '.\u002Fserver';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    httpBatchLink({\n      url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n      maxURLLength: 2083,\n      maxItems: 10,\n    }),\n  ],\n});\n\nconst [post1, post2, post3] = await Promise.all([\n  client.post.byId.query(1),\n  client.post.byId.query(2),\n  client.post.byId.query(3),\n]);\n```\n\nConcurrent calls are batched into a single HTTP request. Set `maxURLLength` to prevent 414 errors from long URLs.\n\n### splitLink -- Route Subscriptions to SSE\n\n```ts\nimport {\n  createTRPCClient,\n  httpBatchLink,\n  httpSubscriptionLink,\n  splitLink,\n} from '@trpc\u002Fclient';\nimport type { AppRouter } from '.\u002Fserver';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    splitLink({\n      condition: (op) => op.type === 'subscription',\n      true: httpSubscriptionLink({\n        url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n      }),\n      false: httpBatchLink({\n        url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n      }),\n    }),\n  ],\n});\n```\n\n### splitLink -- Disable Batching Per-Request via Context\n\n```ts\nimport {\n  createTRPCClient,\n  httpBatchLink,\n  httpLink,\n  splitLink,\n} from '@trpc\u002Fclient';\nimport type { AppRouter } from '.\u002Fserver';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    splitLink({\n      condition: (op) => Boolean(op.context.skipBatch),\n      true: httpLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' }),\n      false: httpBatchLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' }),\n    }),\n  ],\n});\n\nconst result = await client.post.byId.query(1, {\n  context: { skipBatch: true },\n});\n```\n\n### httpBatchStreamLink -- Stream Responses as They Arrive\n\n```ts\nimport { createTRPCClient, httpBatchStreamLink } from '@trpc\u002Fclient';\nimport type { AppRouter } from '.\u002Fserver';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    httpBatchStreamLink({\n      url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n    }),\n  ],\n});\n\nconst iterable = await client.examples.iterable.query();\nfor await (const value of iterable) {\n  console.log(value);\n}\n```\n\n### wsLink -- WebSocket Terminating Link\n\n```ts\nimport { createTRPCClient, createWSClient, wsLink } from '@trpc\u002Fclient';\nimport type { AppRouter } from '.\u002Fserver';\n\nconst wsClient = createWSClient({\n  url: 'ws:\u002F\u002Flocalhost:3000',\n});\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [wsLink\u003CAppRouter>({ client: wsClient })],\n});\n```\n\n### Custom Link\n\n```ts\nimport { TRPCLink } from '@trpc\u002Fclient';\nimport { observable } from '@trpc\u002Fserver\u002Fobservable';\nimport type { AppRouter } from '.\u002Fserver';\n\nexport const timingLink: TRPCLink\u003CAppRouter> = () => {\n  return ({ next, op }) => {\n    return observable((observer) => {\n      const start = Date.now();\n      const unsubscribe = next(op).subscribe({\n        next(value) {\n          observer.next(value);\n        },\n        error(err) {\n          console.error(`${op.path} failed in ${Date.now() - start}ms`);\n          observer.error(err);\n        },\n        complete() {\n          console.log(`${op.path} completed in ${Date.now() - start}ms`);\n          observer.complete();\n        },\n      });\n      return unsubscribe;\n    });\n  };\n};\n```\n\n## Common Mistakes\n\n### [CRITICAL] No terminating link in the chain\n\nWrong:\n\n```ts\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [loggerLink()],\n});\n```\n\nCorrect:\n\n```ts\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [loggerLink(), httpBatchLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' })],\n});\n```\n\nThe link chain must end with a terminating link. Without one, tRPC throws \"No more links to execute - did you forget to add an ending link?\"\n\nSource: packages\u002Fclient\u002Fsrc\u002Flinks\u002Finternals\u002FcreateChain.ts\n\n### [CRITICAL] Sending subscriptions through httpLink or httpBatchLink\n\nWrong:\n\n```ts\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [httpBatchLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' })],\n});\nawait client.onMessage.subscribe({});\n```\n\nCorrect:\n\n```ts\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    splitLink({\n      condition: (op) => op.type === 'subscription',\n      true: httpSubscriptionLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' }),\n      false: httpBatchLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' }),\n    }),\n  ],\n});\n```\n\nhttpLink and httpBatchLink throw on subscription operations. Subscriptions must use httpSubscriptionLink or wsLink, routed via splitLink.\n\nSource: packages\u002Fclient\u002Fsrc\u002Flinks\u002FhttpLink.ts\n\n### [HIGH] httpBatchLink and httpBatchStreamLink headers callback receives { opList }\n\n`httpBatchLink` and `httpBatchStreamLink` headers callbacks receive `{ opList }` (a `NonEmptyArray\u003COperation>`), not `{ op }` like `httpLink`. Access per-operation context via `opList[0]?.context`:\n\n```ts\nhttpBatchLink({\n  url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n  headers({ opList }) {\n    return { authorization: opList[0]?.context.token };\n  },\n});\n```\n\n`httpBatchLink` headers callback receives `{ opList }` (an array of operations)\n\nSource: packages\u002Fclient\u002Fsrc\u002Flinks\u002FhttpBatchLink.ts\n\n### [MEDIUM] Default batch limits are Infinity\n\nWrong:\n\n```ts\nhttpBatchLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' });\n```\n\nCorrect:\n\n```ts\nhttpBatchLink({\n  url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n  maxURLLength: 2083,\n  \u002F\u002F should be the same or lower than the server's maxBatchSize\n  maxItems: 10,\n});\n```\n\nBoth `maxURLLength` and `maxItems` default to `Infinity`, which can cause 413\u002F414 HTTP errors on servers or CDNs with URL length limits. When the server sets `maxBatchSize`, set `maxItems` to the same or lower value so the client auto-splits batches instead of triggering a `400 Bad Request`.\n\nSource: packages\u002Fclient\u002Fsrc\u002Flinks\u002FhttpBatchLink.ts\n\n### [HIGH] httpBatchStreamLink data loss on stream completion\n\nThere is a known race condition where buffered chunks can be lost on normal stream completion. Long streaming responses (e.g., LLM output) may be truncated. If you experience truncated data, switch to `httpBatchLink` for those operations.\n\nSource: https:\u002F\u002Fgithub.com\u002Ftrpc\u002Ftrpc\u002Fissues\u002F7209\n\n## References\n\n- [Link options reference](references\u002Flink-options.md)\n\n## See Also\n\n- `client-setup` -- create the tRPC client and configure links\n- `superjson` -- add transformer to links for Date\u002FMap\u002FSet support\n- `subscriptions` -- set up SSE or WebSocket real-time streams\n- `non-json-content-types` -- route FormData\u002Fbinary through splitLink + httpLink\n- `service-oriented-architecture` -- build custom routing links for multi-service backends\n",{"data":38,"body":54},{"name":4,"description":6,"type":39,"library":8,"library_version":40,"requires":41,"sources":43},"core","11.16.0",[42],"client-setup",[44,45,46,47,48,49,50,51,52,53],"www\u002Fdocs\u002Fclient\u002Flinks\u002Foverview.md","www\u002Fdocs\u002Fclient\u002Flinks\u002FhttpLink.md","www\u002Fdocs\u002Fclient\u002Flinks\u002FhttpBatchLink.md","www\u002Fdocs\u002Fclient\u002Flinks\u002FhttpBatchStreamLink.md","www\u002Fdocs\u002Fclient\u002Flinks\u002FsplitLink.mdx","www\u002Fdocs\u002Fclient\u002Flinks\u002FwsLink.md","www\u002Fdocs\u002Fclient\u002Flinks\u002FhttpSubscriptionLink.md","www\u002Fdocs\u002Fclient\u002Flinks\u002FlocalLink.mdx","www\u002Fdocs\u002Fclient\u002Flinks\u002FloggerLink.md","packages\u002Fclient\u002Fsrc\u002Flinks\u002F",{"type":55,"children":56},"root",[57,66,73,401,414,420,427,955,968,974,1435,1441,1986,1992,2381,2387,2699,2705,3496,3502,3513,3518,3608,3613,3745,3750,3755,3765,3769,3936,3940,4226,4231,4236,4247,4304,4463,4480,4485,4496,4500,4554,4558,4671,4720,4724,4734,4746,4759,4765,4779,4785,4842],{"type":58,"tag":59,"props":60,"children":62},"element","h1",{"id":61},"trpc-links",[63],{"type":64,"value":65},"text","tRPC -- Links",{"type":58,"tag":67,"props":68,"children":70},"h2",{"id":69},"setup",[71],{"type":64,"value":72},"Setup",{"type":58,"tag":74,"props":75,"children":80},"pre",{"className":76,"code":77,"language":78,"meta":79,"style":79},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createTRPCClient, httpBatchLink, loggerLink } from '@trpc\u002Fclient';\nimport type { AppRouter } from '.\u002Fserver';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    loggerLink(),\n    httpBatchLink({\n      url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n    }),\n  ],\n});\n","ts","",[81],{"type":58,"tag":82,"props":83,"children":84},"code",{"__ignoreMap":79},[85,159,206,216,267,287,306,323,353,371,384],{"type":58,"tag":86,"props":87,"children":90},"span",{"class":88,"line":89},"line",1,[91,97,103,109,114,119,123,128,133,138,143,149,154],{"type":58,"tag":86,"props":92,"children":94},{"style":93},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[95],{"type":64,"value":96},"import",{"type":58,"tag":86,"props":98,"children":100},{"style":99},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[101],{"type":64,"value":102}," {",{"type":58,"tag":86,"props":104,"children":106},{"style":105},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[107],{"type":64,"value":108}," createTRPCClient",{"type":58,"tag":86,"props":110,"children":111},{"style":99},[112],{"type":64,"value":113},",",{"type":58,"tag":86,"props":115,"children":116},{"style":105},[117],{"type":64,"value":118}," httpBatchLink",{"type":58,"tag":86,"props":120,"children":121},{"style":99},[122],{"type":64,"value":113},{"type":58,"tag":86,"props":124,"children":125},{"style":105},[126],{"type":64,"value":127}," loggerLink",{"type":58,"tag":86,"props":129,"children":130},{"style":99},[131],{"type":64,"value":132}," }",{"type":58,"tag":86,"props":134,"children":135},{"style":93},[136],{"type":64,"value":137}," from",{"type":58,"tag":86,"props":139,"children":140},{"style":99},[141],{"type":64,"value":142}," '",{"type":58,"tag":86,"props":144,"children":146},{"style":145},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[147],{"type":64,"value":148},"@trpc\u002Fclient",{"type":58,"tag":86,"props":150,"children":151},{"style":99},[152],{"type":64,"value":153},"'",{"type":58,"tag":86,"props":155,"children":156},{"style":99},[157],{"type":64,"value":158},";\n",{"type":58,"tag":86,"props":160,"children":162},{"class":88,"line":161},2,[163,167,172,176,181,185,189,193,198,202],{"type":58,"tag":86,"props":164,"children":165},{"style":93},[166],{"type":64,"value":96},{"type":58,"tag":86,"props":168,"children":169},{"style":93},[170],{"type":64,"value":171}," type",{"type":58,"tag":86,"props":173,"children":174},{"style":99},[175],{"type":64,"value":102},{"type":58,"tag":86,"props":177,"children":178},{"style":105},[179],{"type":64,"value":180}," AppRouter",{"type":58,"tag":86,"props":182,"children":183},{"style":99},[184],{"type":64,"value":132},{"type":58,"tag":86,"props":186,"children":187},{"style":93},[188],{"type":64,"value":137},{"type":58,"tag":86,"props":190,"children":191},{"style":99},[192],{"type":64,"value":142},{"type":58,"tag":86,"props":194,"children":195},{"style":145},[196],{"type":64,"value":197},".\u002Fserver",{"type":58,"tag":86,"props":199,"children":200},{"style":99},[201],{"type":64,"value":153},{"type":58,"tag":86,"props":203,"children":204},{"style":99},[205],{"type":64,"value":158},{"type":58,"tag":86,"props":207,"children":209},{"class":88,"line":208},3,[210],{"type":58,"tag":86,"props":211,"children":213},{"emptyLinePlaceholder":212},true,[214],{"type":64,"value":215},"\n",{"type":58,"tag":86,"props":217,"children":219},{"class":88,"line":218},4,[220,226,231,236,241,246,252,257,262],{"type":58,"tag":86,"props":221,"children":223},{"style":222},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[224],{"type":64,"value":225},"const",{"type":58,"tag":86,"props":227,"children":228},{"style":105},[229],{"type":64,"value":230}," client ",{"type":58,"tag":86,"props":232,"children":233},{"style":99},[234],{"type":64,"value":235},"=",{"type":58,"tag":86,"props":237,"children":239},{"style":238},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[240],{"type":64,"value":108},{"type":58,"tag":86,"props":242,"children":243},{"style":99},[244],{"type":64,"value":245},"\u003C",{"type":58,"tag":86,"props":247,"children":249},{"style":248},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[250],{"type":64,"value":251},"AppRouter",{"type":58,"tag":86,"props":253,"children":254},{"style":99},[255],{"type":64,"value":256},">",{"type":58,"tag":86,"props":258,"children":259},{"style":105},[260],{"type":64,"value":261},"(",{"type":58,"tag":86,"props":263,"children":264},{"style":99},[265],{"type":64,"value":266},"{\n",{"type":58,"tag":86,"props":268,"children":270},{"class":88,"line":269},5,[271,277,282],{"type":58,"tag":86,"props":272,"children":274},{"style":273},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[275],{"type":64,"value":276},"  links",{"type":58,"tag":86,"props":278,"children":279},{"style":99},[280],{"type":64,"value":281},":",{"type":58,"tag":86,"props":283,"children":284},{"style":105},[285],{"type":64,"value":286}," [\n",{"type":58,"tag":86,"props":288,"children":290},{"class":88,"line":289},6,[291,296,301],{"type":58,"tag":86,"props":292,"children":293},{"style":238},[294],{"type":64,"value":295},"    loggerLink",{"type":58,"tag":86,"props":297,"children":298},{"style":105},[299],{"type":64,"value":300},"()",{"type":58,"tag":86,"props":302,"children":303},{"style":99},[304],{"type":64,"value":305},",\n",{"type":58,"tag":86,"props":307,"children":309},{"class":88,"line":308},7,[310,315,319],{"type":58,"tag":86,"props":311,"children":312},{"style":238},[313],{"type":64,"value":314},"    httpBatchLink",{"type":58,"tag":86,"props":316,"children":317},{"style":105},[318],{"type":64,"value":261},{"type":58,"tag":86,"props":320,"children":321},{"style":99},[322],{"type":64,"value":266},{"type":58,"tag":86,"props":324,"children":326},{"class":88,"line":325},8,[327,332,336,340,345,349],{"type":58,"tag":86,"props":328,"children":329},{"style":273},[330],{"type":64,"value":331},"      url",{"type":58,"tag":86,"props":333,"children":334},{"style":99},[335],{"type":64,"value":281},{"type":58,"tag":86,"props":337,"children":338},{"style":99},[339],{"type":64,"value":142},{"type":58,"tag":86,"props":341,"children":342},{"style":145},[343],{"type":64,"value":344},"http:\u002F\u002Flocalhost:3000\u002Ftrpc",{"type":58,"tag":86,"props":346,"children":347},{"style":99},[348],{"type":64,"value":153},{"type":58,"tag":86,"props":350,"children":351},{"style":99},[352],{"type":64,"value":305},{"type":58,"tag":86,"props":354,"children":356},{"class":88,"line":355},9,[357,362,367],{"type":58,"tag":86,"props":358,"children":359},{"style":99},[360],{"type":64,"value":361},"    }",{"type":58,"tag":86,"props":363,"children":364},{"style":105},[365],{"type":64,"value":366},")",{"type":58,"tag":86,"props":368,"children":369},{"style":99},[370],{"type":64,"value":305},{"type":58,"tag":86,"props":372,"children":374},{"class":88,"line":373},10,[375,380],{"type":58,"tag":86,"props":376,"children":377},{"style":105},[378],{"type":64,"value":379},"  ]",{"type":58,"tag":86,"props":381,"children":382},{"style":99},[383],{"type":64,"value":305},{"type":58,"tag":86,"props":385,"children":387},{"class":88,"line":386},11,[388,393,397],{"type":58,"tag":86,"props":389,"children":390},{"style":99},[391],{"type":64,"value":392},"}",{"type":58,"tag":86,"props":394,"children":395},{"style":105},[396],{"type":64,"value":366},{"type":58,"tag":86,"props":398,"children":399},{"style":99},[400],{"type":64,"value":158},{"type":58,"tag":402,"props":403,"children":404},"p",{},[405,407,412],{"type":64,"value":406},"The ",{"type":58,"tag":82,"props":408,"children":410},{"className":409},[],[411],{"type":64,"value":4},{"type":64,"value":413}," array is a chain: non-terminating links (loggerLink, splitLink, retryLink) forward operations; the chain must end with a terminating link (httpBatchLink, httpLink, httpBatchStreamLink, wsLink, httpSubscriptionLink, unstable_localLink).",{"type":58,"tag":67,"props":415,"children":417},{"id":416},"core-patterns",[418],{"type":64,"value":419},"Core Patterns",{"type":58,"tag":421,"props":422,"children":424},"h3",{"id":423},"httpbatchlink-batch-multiple-calls-into-one-request",[425],{"type":64,"value":426},"httpBatchLink -- Batch Multiple Calls into One Request",{"type":58,"tag":74,"props":428,"children":430},{"className":76,"code":429,"language":78,"meta":79,"style":79},"import { createTRPCClient, httpBatchLink } from '@trpc\u002Fclient';\nimport type { AppRouter } from '.\u002Fserver';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    httpBatchLink({\n      url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n      maxURLLength: 2083,\n      maxItems: 10,\n    }),\n  ],\n});\n\nconst [post1, post2, post3] = await Promise.all([\n  client.post.byId.query(1),\n  client.post.byId.query(2),\n  client.post.byId.query(3),\n]);\n",[431],{"type":58,"tag":82,"props":432,"children":433},{"__ignoreMap":79},[434,481,524,531,570,585,600,627,649,670,685,696,712,720,791,844,893,942],{"type":58,"tag":86,"props":435,"children":436},{"class":88,"line":89},[437,441,445,449,453,457,461,465,469,473,477],{"type":58,"tag":86,"props":438,"children":439},{"style":93},[440],{"type":64,"value":96},{"type":58,"tag":86,"props":442,"children":443},{"style":99},[444],{"type":64,"value":102},{"type":58,"tag":86,"props":446,"children":447},{"style":105},[448],{"type":64,"value":108},{"type":58,"tag":86,"props":450,"children":451},{"style":99},[452],{"type":64,"value":113},{"type":58,"tag":86,"props":454,"children":455},{"style":105},[456],{"type":64,"value":118},{"type":58,"tag":86,"props":458,"children":459},{"style":99},[460],{"type":64,"value":132},{"type":58,"tag":86,"props":462,"children":463},{"style":93},[464],{"type":64,"value":137},{"type":58,"tag":86,"props":466,"children":467},{"style":99},[468],{"type":64,"value":142},{"type":58,"tag":86,"props":470,"children":471},{"style":145},[472],{"type":64,"value":148},{"type":58,"tag":86,"props":474,"children":475},{"style":99},[476],{"type":64,"value":153},{"type":58,"tag":86,"props":478,"children":479},{"style":99},[480],{"type":64,"value":158},{"type":58,"tag":86,"props":482,"children":483},{"class":88,"line":161},[484,488,492,496,500,504,508,512,516,520],{"type":58,"tag":86,"props":485,"children":486},{"style":93},[487],{"type":64,"value":96},{"type":58,"tag":86,"props":489,"children":490},{"style":93},[491],{"type":64,"value":171},{"type":58,"tag":86,"props":493,"children":494},{"style":99},[495],{"type":64,"value":102},{"type":58,"tag":86,"props":497,"children":498},{"style":105},[499],{"type":64,"value":180},{"type":58,"tag":86,"props":501,"children":502},{"style":99},[503],{"type":64,"value":132},{"type":58,"tag":86,"props":505,"children":506},{"style":93},[507],{"type":64,"value":137},{"type":58,"tag":86,"props":509,"children":510},{"style":99},[511],{"type":64,"value":142},{"type":58,"tag":86,"props":513,"children":514},{"style":145},[515],{"type":64,"value":197},{"type":58,"tag":86,"props":517,"children":518},{"style":99},[519],{"type":64,"value":153},{"type":58,"tag":86,"props":521,"children":522},{"style":99},[523],{"type":64,"value":158},{"type":58,"tag":86,"props":525,"children":526},{"class":88,"line":208},[527],{"type":58,"tag":86,"props":528,"children":529},{"emptyLinePlaceholder":212},[530],{"type":64,"value":215},{"type":58,"tag":86,"props":532,"children":533},{"class":88,"line":218},[534,538,542,546,550,554,558,562,566],{"type":58,"tag":86,"props":535,"children":536},{"style":222},[537],{"type":64,"value":225},{"type":58,"tag":86,"props":539,"children":540},{"style":105},[541],{"type":64,"value":230},{"type":58,"tag":86,"props":543,"children":544},{"style":99},[545],{"type":64,"value":235},{"type":58,"tag":86,"props":547,"children":548},{"style":238},[549],{"type":64,"value":108},{"type":58,"tag":86,"props":551,"children":552},{"style":99},[553],{"type":64,"value":245},{"type":58,"tag":86,"props":555,"children":556},{"style":248},[557],{"type":64,"value":251},{"type":58,"tag":86,"props":559,"children":560},{"style":99},[561],{"type":64,"value":256},{"type":58,"tag":86,"props":563,"children":564},{"style":105},[565],{"type":64,"value":261},{"type":58,"tag":86,"props":567,"children":568},{"style":99},[569],{"type":64,"value":266},{"type":58,"tag":86,"props":571,"children":572},{"class":88,"line":269},[573,577,581],{"type":58,"tag":86,"props":574,"children":575},{"style":273},[576],{"type":64,"value":276},{"type":58,"tag":86,"props":578,"children":579},{"style":99},[580],{"type":64,"value":281},{"type":58,"tag":86,"props":582,"children":583},{"style":105},[584],{"type":64,"value":286},{"type":58,"tag":86,"props":586,"children":587},{"class":88,"line":289},[588,592,596],{"type":58,"tag":86,"props":589,"children":590},{"style":238},[591],{"type":64,"value":314},{"type":58,"tag":86,"props":593,"children":594},{"style":105},[595],{"type":64,"value":261},{"type":58,"tag":86,"props":597,"children":598},{"style":99},[599],{"type":64,"value":266},{"type":58,"tag":86,"props":601,"children":602},{"class":88,"line":308},[603,607,611,615,619,623],{"type":58,"tag":86,"props":604,"children":605},{"style":273},[606],{"type":64,"value":331},{"type":58,"tag":86,"props":608,"children":609},{"style":99},[610],{"type":64,"value":281},{"type":58,"tag":86,"props":612,"children":613},{"style":99},[614],{"type":64,"value":142},{"type":58,"tag":86,"props":616,"children":617},{"style":145},[618],{"type":64,"value":344},{"type":58,"tag":86,"props":620,"children":621},{"style":99},[622],{"type":64,"value":153},{"type":58,"tag":86,"props":624,"children":625},{"style":99},[626],{"type":64,"value":305},{"type":58,"tag":86,"props":628,"children":629},{"class":88,"line":325},[630,635,639,645],{"type":58,"tag":86,"props":631,"children":632},{"style":273},[633],{"type":64,"value":634},"      maxURLLength",{"type":58,"tag":86,"props":636,"children":637},{"style":99},[638],{"type":64,"value":281},{"type":58,"tag":86,"props":640,"children":642},{"style":641},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[643],{"type":64,"value":644}," 2083",{"type":58,"tag":86,"props":646,"children":647},{"style":99},[648],{"type":64,"value":305},{"type":58,"tag":86,"props":650,"children":651},{"class":88,"line":355},[652,657,661,666],{"type":58,"tag":86,"props":653,"children":654},{"style":273},[655],{"type":64,"value":656},"      maxItems",{"type":58,"tag":86,"props":658,"children":659},{"style":99},[660],{"type":64,"value":281},{"type":58,"tag":86,"props":662,"children":663},{"style":641},[664],{"type":64,"value":665}," 10",{"type":58,"tag":86,"props":667,"children":668},{"style":99},[669],{"type":64,"value":305},{"type":58,"tag":86,"props":671,"children":672},{"class":88,"line":373},[673,677,681],{"type":58,"tag":86,"props":674,"children":675},{"style":99},[676],{"type":64,"value":361},{"type":58,"tag":86,"props":678,"children":679},{"style":105},[680],{"type":64,"value":366},{"type":58,"tag":86,"props":682,"children":683},{"style":99},[684],{"type":64,"value":305},{"type":58,"tag":86,"props":686,"children":687},{"class":88,"line":386},[688,692],{"type":58,"tag":86,"props":689,"children":690},{"style":105},[691],{"type":64,"value":379},{"type":58,"tag":86,"props":693,"children":694},{"style":99},[695],{"type":64,"value":305},{"type":58,"tag":86,"props":697,"children":699},{"class":88,"line":698},12,[700,704,708],{"type":58,"tag":86,"props":701,"children":702},{"style":99},[703],{"type":64,"value":392},{"type":58,"tag":86,"props":705,"children":706},{"style":105},[707],{"type":64,"value":366},{"type":58,"tag":86,"props":709,"children":710},{"style":99},[711],{"type":64,"value":158},{"type":58,"tag":86,"props":713,"children":715},{"class":88,"line":714},13,[716],{"type":58,"tag":86,"props":717,"children":718},{"emptyLinePlaceholder":212},[719],{"type":64,"value":215},{"type":58,"tag":86,"props":721,"children":723},{"class":88,"line":722},14,[724,728,733,738,742,747,751,756,761,766,771,776,781,786],{"type":58,"tag":86,"props":725,"children":726},{"style":222},[727],{"type":64,"value":225},{"type":58,"tag":86,"props":729,"children":730},{"style":99},[731],{"type":64,"value":732}," [",{"type":58,"tag":86,"props":734,"children":735},{"style":105},[736],{"type":64,"value":737},"post1",{"type":58,"tag":86,"props":739,"children":740},{"style":99},[741],{"type":64,"value":113},{"type":58,"tag":86,"props":743,"children":744},{"style":105},[745],{"type":64,"value":746}," post2",{"type":58,"tag":86,"props":748,"children":749},{"style":99},[750],{"type":64,"value":113},{"type":58,"tag":86,"props":752,"children":753},{"style":105},[754],{"type":64,"value":755}," post3",{"type":58,"tag":86,"props":757,"children":758},{"style":99},[759],{"type":64,"value":760},"]",{"type":58,"tag":86,"props":762,"children":763},{"style":99},[764],{"type":64,"value":765}," =",{"type":58,"tag":86,"props":767,"children":768},{"style":93},[769],{"type":64,"value":770}," await",{"type":58,"tag":86,"props":772,"children":773},{"style":248},[774],{"type":64,"value":775}," Promise",{"type":58,"tag":86,"props":777,"children":778},{"style":99},[779],{"type":64,"value":780},".",{"type":58,"tag":86,"props":782,"children":783},{"style":238},[784],{"type":64,"value":785},"all",{"type":58,"tag":86,"props":787,"children":788},{"style":105},[789],{"type":64,"value":790},"([\n",{"type":58,"tag":86,"props":792,"children":794},{"class":88,"line":793},15,[795,800,804,809,813,818,822,827,831,836,840],{"type":58,"tag":86,"props":796,"children":797},{"style":105},[798],{"type":64,"value":799},"  client",{"type":58,"tag":86,"props":801,"children":802},{"style":99},[803],{"type":64,"value":780},{"type":58,"tag":86,"props":805,"children":806},{"style":105},[807],{"type":64,"value":808},"post",{"type":58,"tag":86,"props":810,"children":811},{"style":99},[812],{"type":64,"value":780},{"type":58,"tag":86,"props":814,"children":815},{"style":105},[816],{"type":64,"value":817},"byId",{"type":58,"tag":86,"props":819,"children":820},{"style":99},[821],{"type":64,"value":780},{"type":58,"tag":86,"props":823,"children":824},{"style":238},[825],{"type":64,"value":826},"query",{"type":58,"tag":86,"props":828,"children":829},{"style":105},[830],{"type":64,"value":261},{"type":58,"tag":86,"props":832,"children":833},{"style":641},[834],{"type":64,"value":835},"1",{"type":58,"tag":86,"props":837,"children":838},{"style":105},[839],{"type":64,"value":366},{"type":58,"tag":86,"props":841,"children":842},{"style":99},[843],{"type":64,"value":305},{"type":58,"tag":86,"props":845,"children":847},{"class":88,"line":846},16,[848,852,856,860,864,868,872,876,880,885,889],{"type":58,"tag":86,"props":849,"children":850},{"style":105},[851],{"type":64,"value":799},{"type":58,"tag":86,"props":853,"children":854},{"style":99},[855],{"type":64,"value":780},{"type":58,"tag":86,"props":857,"children":858},{"style":105},[859],{"type":64,"value":808},{"type":58,"tag":86,"props":861,"children":862},{"style":99},[863],{"type":64,"value":780},{"type":58,"tag":86,"props":865,"children":866},{"style":105},[867],{"type":64,"value":817},{"type":58,"tag":86,"props":869,"children":870},{"style":99},[871],{"type":64,"value":780},{"type":58,"tag":86,"props":873,"children":874},{"style":238},[875],{"type":64,"value":826},{"type":58,"tag":86,"props":877,"children":878},{"style":105},[879],{"type":64,"value":261},{"type":58,"tag":86,"props":881,"children":882},{"style":641},[883],{"type":64,"value":884},"2",{"type":58,"tag":86,"props":886,"children":887},{"style":105},[888],{"type":64,"value":366},{"type":58,"tag":86,"props":890,"children":891},{"style":99},[892],{"type":64,"value":305},{"type":58,"tag":86,"props":894,"children":896},{"class":88,"line":895},17,[897,901,905,909,913,917,921,925,929,934,938],{"type":58,"tag":86,"props":898,"children":899},{"style":105},[900],{"type":64,"value":799},{"type":58,"tag":86,"props":902,"children":903},{"style":99},[904],{"type":64,"value":780},{"type":58,"tag":86,"props":906,"children":907},{"style":105},[908],{"type":64,"value":808},{"type":58,"tag":86,"props":910,"children":911},{"style":99},[912],{"type":64,"value":780},{"type":58,"tag":86,"props":914,"children":915},{"style":105},[916],{"type":64,"value":817},{"type":58,"tag":86,"props":918,"children":919},{"style":99},[920],{"type":64,"value":780},{"type":58,"tag":86,"props":922,"children":923},{"style":238},[924],{"type":64,"value":826},{"type":58,"tag":86,"props":926,"children":927},{"style":105},[928],{"type":64,"value":261},{"type":58,"tag":86,"props":930,"children":931},{"style":641},[932],{"type":64,"value":933},"3",{"type":58,"tag":86,"props":935,"children":936},{"style":105},[937],{"type":64,"value":366},{"type":58,"tag":86,"props":939,"children":940},{"style":99},[941],{"type":64,"value":305},{"type":58,"tag":86,"props":943,"children":945},{"class":88,"line":944},18,[946,951],{"type":58,"tag":86,"props":947,"children":948},{"style":105},[949],{"type":64,"value":950},"])",{"type":58,"tag":86,"props":952,"children":953},{"style":99},[954],{"type":64,"value":158},{"type":58,"tag":402,"props":956,"children":957},{},[958,960,966],{"type":64,"value":959},"Concurrent calls are batched into a single HTTP request. Set ",{"type":58,"tag":82,"props":961,"children":963},{"className":962},[],[964],{"type":64,"value":965},"maxURLLength",{"type":64,"value":967}," to prevent 414 errors from long URLs.",{"type":58,"tag":421,"props":969,"children":971},{"id":970},"splitlink-route-subscriptions-to-sse",[972],{"type":64,"value":973},"splitLink -- Route Subscriptions to SSE",{"type":58,"tag":74,"props":975,"children":977},{"className":76,"code":976,"language":78,"meta":79,"style":79},"import {\n  createTRPCClient,\n  httpBatchLink,\n  httpSubscriptionLink,\n  splitLink,\n} from '@trpc\u002Fclient';\nimport type { AppRouter } from '.\u002Fserver';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    splitLink({\n      condition: (op) => op.type === 'subscription',\n      true: httpSubscriptionLink({\n        url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n      }),\n      false: httpBatchLink({\n        url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n      }),\n    }),\n  ],\n});\n",[978],{"type":58,"tag":82,"props":979,"children":980},{"__ignoreMap":79},[981,993,1005,1017,1029,1041,1068,1111,1118,1157,1172,1188,1256,1281,1309,1325,1349,1376,1391,1407,1419],{"type":58,"tag":86,"props":982,"children":983},{"class":88,"line":89},[984,988],{"type":58,"tag":86,"props":985,"children":986},{"style":93},[987],{"type":64,"value":96},{"type":58,"tag":86,"props":989,"children":990},{"style":99},[991],{"type":64,"value":992}," {\n",{"type":58,"tag":86,"props":994,"children":995},{"class":88,"line":161},[996,1001],{"type":58,"tag":86,"props":997,"children":998},{"style":105},[999],{"type":64,"value":1000},"  createTRPCClient",{"type":58,"tag":86,"props":1002,"children":1003},{"style":99},[1004],{"type":64,"value":305},{"type":58,"tag":86,"props":1006,"children":1007},{"class":88,"line":208},[1008,1013],{"type":58,"tag":86,"props":1009,"children":1010},{"style":105},[1011],{"type":64,"value":1012},"  httpBatchLink",{"type":58,"tag":86,"props":1014,"children":1015},{"style":99},[1016],{"type":64,"value":305},{"type":58,"tag":86,"props":1018,"children":1019},{"class":88,"line":218},[1020,1025],{"type":58,"tag":86,"props":1021,"children":1022},{"style":105},[1023],{"type":64,"value":1024},"  httpSubscriptionLink",{"type":58,"tag":86,"props":1026,"children":1027},{"style":99},[1028],{"type":64,"value":305},{"type":58,"tag":86,"props":1030,"children":1031},{"class":88,"line":269},[1032,1037],{"type":58,"tag":86,"props":1033,"children":1034},{"style":105},[1035],{"type":64,"value":1036},"  splitLink",{"type":58,"tag":86,"props":1038,"children":1039},{"style":99},[1040],{"type":64,"value":305},{"type":58,"tag":86,"props":1042,"children":1043},{"class":88,"line":289},[1044,1048,1052,1056,1060,1064],{"type":58,"tag":86,"props":1045,"children":1046},{"style":99},[1047],{"type":64,"value":392},{"type":58,"tag":86,"props":1049,"children":1050},{"style":93},[1051],{"type":64,"value":137},{"type":58,"tag":86,"props":1053,"children":1054},{"style":99},[1055],{"type":64,"value":142},{"type":58,"tag":86,"props":1057,"children":1058},{"style":145},[1059],{"type":64,"value":148},{"type":58,"tag":86,"props":1061,"children":1062},{"style":99},[1063],{"type":64,"value":153},{"type":58,"tag":86,"props":1065,"children":1066},{"style":99},[1067],{"type":64,"value":158},{"type":58,"tag":86,"props":1069,"children":1070},{"class":88,"line":308},[1071,1075,1079,1083,1087,1091,1095,1099,1103,1107],{"type":58,"tag":86,"props":1072,"children":1073},{"style":93},[1074],{"type":64,"value":96},{"type":58,"tag":86,"props":1076,"children":1077},{"style":93},[1078],{"type":64,"value":171},{"type":58,"tag":86,"props":1080,"children":1081},{"style":99},[1082],{"type":64,"value":102},{"type":58,"tag":86,"props":1084,"children":1085},{"style":105},[1086],{"type":64,"value":180},{"type":58,"tag":86,"props":1088,"children":1089},{"style":99},[1090],{"type":64,"value":132},{"type":58,"tag":86,"props":1092,"children":1093},{"style":93},[1094],{"type":64,"value":137},{"type":58,"tag":86,"props":1096,"children":1097},{"style":99},[1098],{"type":64,"value":142},{"type":58,"tag":86,"props":1100,"children":1101},{"style":145},[1102],{"type":64,"value":197},{"type":58,"tag":86,"props":1104,"children":1105},{"style":99},[1106],{"type":64,"value":153},{"type":58,"tag":86,"props":1108,"children":1109},{"style":99},[1110],{"type":64,"value":158},{"type":58,"tag":86,"props":1112,"children":1113},{"class":88,"line":325},[1114],{"type":58,"tag":86,"props":1115,"children":1116},{"emptyLinePlaceholder":212},[1117],{"type":64,"value":215},{"type":58,"tag":86,"props":1119,"children":1120},{"class":88,"line":355},[1121,1125,1129,1133,1137,1141,1145,1149,1153],{"type":58,"tag":86,"props":1122,"children":1123},{"style":222},[1124],{"type":64,"value":225},{"type":58,"tag":86,"props":1126,"children":1127},{"style":105},[1128],{"type":64,"value":230},{"type":58,"tag":86,"props":1130,"children":1131},{"style":99},[1132],{"type":64,"value":235},{"type":58,"tag":86,"props":1134,"children":1135},{"style":238},[1136],{"type":64,"value":108},{"type":58,"tag":86,"props":1138,"children":1139},{"style":99},[1140],{"type":64,"value":245},{"type":58,"tag":86,"props":1142,"children":1143},{"style":248},[1144],{"type":64,"value":251},{"type":58,"tag":86,"props":1146,"children":1147},{"style":99},[1148],{"type":64,"value":256},{"type":58,"tag":86,"props":1150,"children":1151},{"style":105},[1152],{"type":64,"value":261},{"type":58,"tag":86,"props":1154,"children":1155},{"style":99},[1156],{"type":64,"value":266},{"type":58,"tag":86,"props":1158,"children":1159},{"class":88,"line":373},[1160,1164,1168],{"type":58,"tag":86,"props":1161,"children":1162},{"style":273},[1163],{"type":64,"value":276},{"type":58,"tag":86,"props":1165,"children":1166},{"style":99},[1167],{"type":64,"value":281},{"type":58,"tag":86,"props":1169,"children":1170},{"style":105},[1171],{"type":64,"value":286},{"type":58,"tag":86,"props":1173,"children":1174},{"class":88,"line":386},[1175,1180,1184],{"type":58,"tag":86,"props":1176,"children":1177},{"style":238},[1178],{"type":64,"value":1179},"    splitLink",{"type":58,"tag":86,"props":1181,"children":1182},{"style":105},[1183],{"type":64,"value":261},{"type":58,"tag":86,"props":1185,"children":1186},{"style":99},[1187],{"type":64,"value":266},{"type":58,"tag":86,"props":1189,"children":1190},{"class":88,"line":698},[1191,1196,1200,1205,1211,1215,1220,1225,1229,1234,1239,1243,1248,1252],{"type":58,"tag":86,"props":1192,"children":1193},{"style":238},[1194],{"type":64,"value":1195},"      condition",{"type":58,"tag":86,"props":1197,"children":1198},{"style":99},[1199],{"type":64,"value":281},{"type":58,"tag":86,"props":1201,"children":1202},{"style":99},[1203],{"type":64,"value":1204}," (",{"type":58,"tag":86,"props":1206,"children":1208},{"style":1207},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1209],{"type":64,"value":1210},"op",{"type":58,"tag":86,"props":1212,"children":1213},{"style":99},[1214],{"type":64,"value":366},{"type":58,"tag":86,"props":1216,"children":1217},{"style":222},[1218],{"type":64,"value":1219}," =>",{"type":58,"tag":86,"props":1221,"children":1222},{"style":105},[1223],{"type":64,"value":1224}," op",{"type":58,"tag":86,"props":1226,"children":1227},{"style":99},[1228],{"type":64,"value":780},{"type":58,"tag":86,"props":1230,"children":1231},{"style":105},[1232],{"type":64,"value":1233},"type ",{"type":58,"tag":86,"props":1235,"children":1236},{"style":99},[1237],{"type":64,"value":1238},"===",{"type":58,"tag":86,"props":1240,"children":1241},{"style":99},[1242],{"type":64,"value":142},{"type":58,"tag":86,"props":1244,"children":1245},{"style":145},[1246],{"type":64,"value":1247},"subscription",{"type":58,"tag":86,"props":1249,"children":1250},{"style":99},[1251],{"type":64,"value":153},{"type":58,"tag":86,"props":1253,"children":1254},{"style":99},[1255],{"type":64,"value":305},{"type":58,"tag":86,"props":1257,"children":1258},{"class":88,"line":714},[1259,1264,1268,1273,1277],{"type":58,"tag":86,"props":1260,"children":1261},{"style":273},[1262],{"type":64,"value":1263},"      true",{"type":58,"tag":86,"props":1265,"children":1266},{"style":99},[1267],{"type":64,"value":281},{"type":58,"tag":86,"props":1269,"children":1270},{"style":238},[1271],{"type":64,"value":1272}," httpSubscriptionLink",{"type":58,"tag":86,"props":1274,"children":1275},{"style":105},[1276],{"type":64,"value":261},{"type":58,"tag":86,"props":1278,"children":1279},{"style":99},[1280],{"type":64,"value":266},{"type":58,"tag":86,"props":1282,"children":1283},{"class":88,"line":722},[1284,1289,1293,1297,1301,1305],{"type":58,"tag":86,"props":1285,"children":1286},{"style":273},[1287],{"type":64,"value":1288},"        url",{"type":58,"tag":86,"props":1290,"children":1291},{"style":99},[1292],{"type":64,"value":281},{"type":58,"tag":86,"props":1294,"children":1295},{"style":99},[1296],{"type":64,"value":142},{"type":58,"tag":86,"props":1298,"children":1299},{"style":145},[1300],{"type":64,"value":344},{"type":58,"tag":86,"props":1302,"children":1303},{"style":99},[1304],{"type":64,"value":153},{"type":58,"tag":86,"props":1306,"children":1307},{"style":99},[1308],{"type":64,"value":305},{"type":58,"tag":86,"props":1310,"children":1311},{"class":88,"line":793},[1312,1317,1321],{"type":58,"tag":86,"props":1313,"children":1314},{"style":99},[1315],{"type":64,"value":1316},"      }",{"type":58,"tag":86,"props":1318,"children":1319},{"style":105},[1320],{"type":64,"value":366},{"type":58,"tag":86,"props":1322,"children":1323},{"style":99},[1324],{"type":64,"value":305},{"type":58,"tag":86,"props":1326,"children":1327},{"class":88,"line":846},[1328,1333,1337,1341,1345],{"type":58,"tag":86,"props":1329,"children":1330},{"style":273},[1331],{"type":64,"value":1332},"      false",{"type":58,"tag":86,"props":1334,"children":1335},{"style":99},[1336],{"type":64,"value":281},{"type":58,"tag":86,"props":1338,"children":1339},{"style":238},[1340],{"type":64,"value":118},{"type":58,"tag":86,"props":1342,"children":1343},{"style":105},[1344],{"type":64,"value":261},{"type":58,"tag":86,"props":1346,"children":1347},{"style":99},[1348],{"type":64,"value":266},{"type":58,"tag":86,"props":1350,"children":1351},{"class":88,"line":895},[1352,1356,1360,1364,1368,1372],{"type":58,"tag":86,"props":1353,"children":1354},{"style":273},[1355],{"type":64,"value":1288},{"type":58,"tag":86,"props":1357,"children":1358},{"style":99},[1359],{"type":64,"value":281},{"type":58,"tag":86,"props":1361,"children":1362},{"style":99},[1363],{"type":64,"value":142},{"type":58,"tag":86,"props":1365,"children":1366},{"style":145},[1367],{"type":64,"value":344},{"type":58,"tag":86,"props":1369,"children":1370},{"style":99},[1371],{"type":64,"value":153},{"type":58,"tag":86,"props":1373,"children":1374},{"style":99},[1375],{"type":64,"value":305},{"type":58,"tag":86,"props":1377,"children":1378},{"class":88,"line":944},[1379,1383,1387],{"type":58,"tag":86,"props":1380,"children":1381},{"style":99},[1382],{"type":64,"value":1316},{"type":58,"tag":86,"props":1384,"children":1385},{"style":105},[1386],{"type":64,"value":366},{"type":58,"tag":86,"props":1388,"children":1389},{"style":99},[1390],{"type":64,"value":305},{"type":58,"tag":86,"props":1392,"children":1394},{"class":88,"line":1393},19,[1395,1399,1403],{"type":58,"tag":86,"props":1396,"children":1397},{"style":99},[1398],{"type":64,"value":361},{"type":58,"tag":86,"props":1400,"children":1401},{"style":105},[1402],{"type":64,"value":366},{"type":58,"tag":86,"props":1404,"children":1405},{"style":99},[1406],{"type":64,"value":305},{"type":58,"tag":86,"props":1408,"children":1410},{"class":88,"line":1409},20,[1411,1415],{"type":58,"tag":86,"props":1412,"children":1413},{"style":105},[1414],{"type":64,"value":379},{"type":58,"tag":86,"props":1416,"children":1417},{"style":99},[1418],{"type":64,"value":305},{"type":58,"tag":86,"props":1420,"children":1422},{"class":88,"line":1421},21,[1423,1427,1431],{"type":58,"tag":86,"props":1424,"children":1425},{"style":99},[1426],{"type":64,"value":392},{"type":58,"tag":86,"props":1428,"children":1429},{"style":105},[1430],{"type":64,"value":366},{"type":58,"tag":86,"props":1432,"children":1433},{"style":99},[1434],{"type":64,"value":158},{"type":58,"tag":421,"props":1436,"children":1438},{"id":1437},"splitlink-disable-batching-per-request-via-context",[1439],{"type":64,"value":1440},"splitLink -- Disable Batching Per-Request via Context",{"type":58,"tag":74,"props":1442,"children":1444},{"className":76,"code":1443,"language":78,"meta":79,"style":79},"import {\n  createTRPCClient,\n  httpBatchLink,\n  httpLink,\n  splitLink,\n} from '@trpc\u002Fclient';\nimport type { AppRouter } from '.\u002Fserver';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    splitLink({\n      condition: (op) => Boolean(op.context.skipBatch),\n      true: httpLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' }),\n      false: httpBatchLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' }),\n    }),\n  ],\n});\n\nconst result = await client.post.byId.query(1, {\n  context: { skipBatch: true },\n});\n",[1445],{"type":58,"tag":82,"props":1446,"children":1447},{"__ignoreMap":79},[1448,1459,1470,1481,1493,1504,1531,1574,1581,1620,1635,1650,1709,1767,1822,1837,1848,1863,1870,1935,1971],{"type":58,"tag":86,"props":1449,"children":1450},{"class":88,"line":89},[1451,1455],{"type":58,"tag":86,"props":1452,"children":1453},{"style":93},[1454],{"type":64,"value":96},{"type":58,"tag":86,"props":1456,"children":1457},{"style":99},[1458],{"type":64,"value":992},{"type":58,"tag":86,"props":1460,"children":1461},{"class":88,"line":161},[1462,1466],{"type":58,"tag":86,"props":1463,"children":1464},{"style":105},[1465],{"type":64,"value":1000},{"type":58,"tag":86,"props":1467,"children":1468},{"style":99},[1469],{"type":64,"value":305},{"type":58,"tag":86,"props":1471,"children":1472},{"class":88,"line":208},[1473,1477],{"type":58,"tag":86,"props":1474,"children":1475},{"style":105},[1476],{"type":64,"value":1012},{"type":58,"tag":86,"props":1478,"children":1479},{"style":99},[1480],{"type":64,"value":305},{"type":58,"tag":86,"props":1482,"children":1483},{"class":88,"line":218},[1484,1489],{"type":58,"tag":86,"props":1485,"children":1486},{"style":105},[1487],{"type":64,"value":1488},"  httpLink",{"type":58,"tag":86,"props":1490,"children":1491},{"style":99},[1492],{"type":64,"value":305},{"type":58,"tag":86,"props":1494,"children":1495},{"class":88,"line":269},[1496,1500],{"type":58,"tag":86,"props":1497,"children":1498},{"style":105},[1499],{"type":64,"value":1036},{"type":58,"tag":86,"props":1501,"children":1502},{"style":99},[1503],{"type":64,"value":305},{"type":58,"tag":86,"props":1505,"children":1506},{"class":88,"line":289},[1507,1511,1515,1519,1523,1527],{"type":58,"tag":86,"props":1508,"children":1509},{"style":99},[1510],{"type":64,"value":392},{"type":58,"tag":86,"props":1512,"children":1513},{"style":93},[1514],{"type":64,"value":137},{"type":58,"tag":86,"props":1516,"children":1517},{"style":99},[1518],{"type":64,"value":142},{"type":58,"tag":86,"props":1520,"children":1521},{"style":145},[1522],{"type":64,"value":148},{"type":58,"tag":86,"props":1524,"children":1525},{"style":99},[1526],{"type":64,"value":153},{"type":58,"tag":86,"props":1528,"children":1529},{"style":99},[1530],{"type":64,"value":158},{"type":58,"tag":86,"props":1532,"children":1533},{"class":88,"line":308},[1534,1538,1542,1546,1550,1554,1558,1562,1566,1570],{"type":58,"tag":86,"props":1535,"children":1536},{"style":93},[1537],{"type":64,"value":96},{"type":58,"tag":86,"props":1539,"children":1540},{"style":93},[1541],{"type":64,"value":171},{"type":58,"tag":86,"props":1543,"children":1544},{"style":99},[1545],{"type":64,"value":102},{"type":58,"tag":86,"props":1547,"children":1548},{"style":105},[1549],{"type":64,"value":180},{"type":58,"tag":86,"props":1551,"children":1552},{"style":99},[1553],{"type":64,"value":132},{"type":58,"tag":86,"props":1555,"children":1556},{"style":93},[1557],{"type":64,"value":137},{"type":58,"tag":86,"props":1559,"children":1560},{"style":99},[1561],{"type":64,"value":142},{"type":58,"tag":86,"props":1563,"children":1564},{"style":145},[1565],{"type":64,"value":197},{"type":58,"tag":86,"props":1567,"children":1568},{"style":99},[1569],{"type":64,"value":153},{"type":58,"tag":86,"props":1571,"children":1572},{"style":99},[1573],{"type":64,"value":158},{"type":58,"tag":86,"props":1575,"children":1576},{"class":88,"line":325},[1577],{"type":58,"tag":86,"props":1578,"children":1579},{"emptyLinePlaceholder":212},[1580],{"type":64,"value":215},{"type":58,"tag":86,"props":1582,"children":1583},{"class":88,"line":355},[1584,1588,1592,1596,1600,1604,1608,1612,1616],{"type":58,"tag":86,"props":1585,"children":1586},{"style":222},[1587],{"type":64,"value":225},{"type":58,"tag":86,"props":1589,"children":1590},{"style":105},[1591],{"type":64,"value":230},{"type":58,"tag":86,"props":1593,"children":1594},{"style":99},[1595],{"type":64,"value":235},{"type":58,"tag":86,"props":1597,"children":1598},{"style":238},[1599],{"type":64,"value":108},{"type":58,"tag":86,"props":1601,"children":1602},{"style":99},[1603],{"type":64,"value":245},{"type":58,"tag":86,"props":1605,"children":1606},{"style":248},[1607],{"type":64,"value":251},{"type":58,"tag":86,"props":1609,"children":1610},{"style":99},[1611],{"type":64,"value":256},{"type":58,"tag":86,"props":1613,"children":1614},{"style":105},[1615],{"type":64,"value":261},{"type":58,"tag":86,"props":1617,"children":1618},{"style":99},[1619],{"type":64,"value":266},{"type":58,"tag":86,"props":1621,"children":1622},{"class":88,"line":373},[1623,1627,1631],{"type":58,"tag":86,"props":1624,"children":1625},{"style":273},[1626],{"type":64,"value":276},{"type":58,"tag":86,"props":1628,"children":1629},{"style":99},[1630],{"type":64,"value":281},{"type":58,"tag":86,"props":1632,"children":1633},{"style":105},[1634],{"type":64,"value":286},{"type":58,"tag":86,"props":1636,"children":1637},{"class":88,"line":386},[1638,1642,1646],{"type":58,"tag":86,"props":1639,"children":1640},{"style":238},[1641],{"type":64,"value":1179},{"type":58,"tag":86,"props":1643,"children":1644},{"style":105},[1645],{"type":64,"value":261},{"type":58,"tag":86,"props":1647,"children":1648},{"style":99},[1649],{"type":64,"value":266},{"type":58,"tag":86,"props":1651,"children":1652},{"class":88,"line":698},[1653,1657,1661,1665,1669,1673,1677,1682,1687,1691,1696,1700,1705],{"type":58,"tag":86,"props":1654,"children":1655},{"style":238},[1656],{"type":64,"value":1195},{"type":58,"tag":86,"props":1658,"children":1659},{"style":99},[1660],{"type":64,"value":281},{"type":58,"tag":86,"props":1662,"children":1663},{"style":99},[1664],{"type":64,"value":1204},{"type":58,"tag":86,"props":1666,"children":1667},{"style":1207},[1668],{"type":64,"value":1210},{"type":58,"tag":86,"props":1670,"children":1671},{"style":99},[1672],{"type":64,"value":366},{"type":58,"tag":86,"props":1674,"children":1675},{"style":222},[1676],{"type":64,"value":1219},{"type":58,"tag":86,"props":1678,"children":1679},{"style":238},[1680],{"type":64,"value":1681}," Boolean",{"type":58,"tag":86,"props":1683,"children":1684},{"style":105},[1685],{"type":64,"value":1686},"(op",{"type":58,"tag":86,"props":1688,"children":1689},{"style":99},[1690],{"type":64,"value":780},{"type":58,"tag":86,"props":1692,"children":1693},{"style":105},[1694],{"type":64,"value":1695},"context",{"type":58,"tag":86,"props":1697,"children":1698},{"style":99},[1699],{"type":64,"value":780},{"type":58,"tag":86,"props":1701,"children":1702},{"style":105},[1703],{"type":64,"value":1704},"skipBatch)",{"type":58,"tag":86,"props":1706,"children":1707},{"style":99},[1708],{"type":64,"value":305},{"type":58,"tag":86,"props":1710,"children":1711},{"class":88,"line":714},[1712,1716,1720,1725,1729,1734,1739,1743,1747,1751,1755,1759,1763],{"type":58,"tag":86,"props":1713,"children":1714},{"style":273},[1715],{"type":64,"value":1263},{"type":58,"tag":86,"props":1717,"children":1718},{"style":99},[1719],{"type":64,"value":281},{"type":58,"tag":86,"props":1721,"children":1722},{"style":238},[1723],{"type":64,"value":1724}," httpLink",{"type":58,"tag":86,"props":1726,"children":1727},{"style":105},[1728],{"type":64,"value":261},{"type":58,"tag":86,"props":1730,"children":1731},{"style":99},[1732],{"type":64,"value":1733},"{",{"type":58,"tag":86,"props":1735,"children":1736},{"style":273},[1737],{"type":64,"value":1738}," url",{"type":58,"tag":86,"props":1740,"children":1741},{"style":99},[1742],{"type":64,"value":281},{"type":58,"tag":86,"props":1744,"children":1745},{"style":99},[1746],{"type":64,"value":142},{"type":58,"tag":86,"props":1748,"children":1749},{"style":145},[1750],{"type":64,"value":344},{"type":58,"tag":86,"props":1752,"children":1753},{"style":99},[1754],{"type":64,"value":153},{"type":58,"tag":86,"props":1756,"children":1757},{"style":99},[1758],{"type":64,"value":132},{"type":58,"tag":86,"props":1760,"children":1761},{"style":105},[1762],{"type":64,"value":366},{"type":58,"tag":86,"props":1764,"children":1765},{"style":99},[1766],{"type":64,"value":305},{"type":58,"tag":86,"props":1768,"children":1769},{"class":88,"line":722},[1770,1774,1778,1782,1786,1790,1794,1798,1802,1806,1810,1814,1818],{"type":58,"tag":86,"props":1771,"children":1772},{"style":273},[1773],{"type":64,"value":1332},{"type":58,"tag":86,"props":1775,"children":1776},{"style":99},[1777],{"type":64,"value":281},{"type":58,"tag":86,"props":1779,"children":1780},{"style":238},[1781],{"type":64,"value":118},{"type":58,"tag":86,"props":1783,"children":1784},{"style":105},[1785],{"type":64,"value":261},{"type":58,"tag":86,"props":1787,"children":1788},{"style":99},[1789],{"type":64,"value":1733},{"type":58,"tag":86,"props":1791,"children":1792},{"style":273},[1793],{"type":64,"value":1738},{"type":58,"tag":86,"props":1795,"children":1796},{"style":99},[1797],{"type":64,"value":281},{"type":58,"tag":86,"props":1799,"children":1800},{"style":99},[1801],{"type":64,"value":142},{"type":58,"tag":86,"props":1803,"children":1804},{"style":145},[1805],{"type":64,"value":344},{"type":58,"tag":86,"props":1807,"children":1808},{"style":99},[1809],{"type":64,"value":153},{"type":58,"tag":86,"props":1811,"children":1812},{"style":99},[1813],{"type":64,"value":132},{"type":58,"tag":86,"props":1815,"children":1816},{"style":105},[1817],{"type":64,"value":366},{"type":58,"tag":86,"props":1819,"children":1820},{"style":99},[1821],{"type":64,"value":305},{"type":58,"tag":86,"props":1823,"children":1824},{"class":88,"line":793},[1825,1829,1833],{"type":58,"tag":86,"props":1826,"children":1827},{"style":99},[1828],{"type":64,"value":361},{"type":58,"tag":86,"props":1830,"children":1831},{"style":105},[1832],{"type":64,"value":366},{"type":58,"tag":86,"props":1834,"children":1835},{"style":99},[1836],{"type":64,"value":305},{"type":58,"tag":86,"props":1838,"children":1839},{"class":88,"line":846},[1840,1844],{"type":58,"tag":86,"props":1841,"children":1842},{"style":105},[1843],{"type":64,"value":379},{"type":58,"tag":86,"props":1845,"children":1846},{"style":99},[1847],{"type":64,"value":305},{"type":58,"tag":86,"props":1849,"children":1850},{"class":88,"line":895},[1851,1855,1859],{"type":58,"tag":86,"props":1852,"children":1853},{"style":99},[1854],{"type":64,"value":392},{"type":58,"tag":86,"props":1856,"children":1857},{"style":105},[1858],{"type":64,"value":366},{"type":58,"tag":86,"props":1860,"children":1861},{"style":99},[1862],{"type":64,"value":158},{"type":58,"tag":86,"props":1864,"children":1865},{"class":88,"line":944},[1866],{"type":58,"tag":86,"props":1867,"children":1868},{"emptyLinePlaceholder":212},[1869],{"type":64,"value":215},{"type":58,"tag":86,"props":1871,"children":1872},{"class":88,"line":1393},[1873,1877,1882,1886,1890,1895,1899,1903,1907,1911,1915,1919,1923,1927,1931],{"type":58,"tag":86,"props":1874,"children":1875},{"style":222},[1876],{"type":64,"value":225},{"type":58,"tag":86,"props":1878,"children":1879},{"style":105},[1880],{"type":64,"value":1881}," result ",{"type":58,"tag":86,"props":1883,"children":1884},{"style":99},[1885],{"type":64,"value":235},{"type":58,"tag":86,"props":1887,"children":1888},{"style":93},[1889],{"type":64,"value":770},{"type":58,"tag":86,"props":1891,"children":1892},{"style":105},[1893],{"type":64,"value":1894}," client",{"type":58,"tag":86,"props":1896,"children":1897},{"style":99},[1898],{"type":64,"value":780},{"type":58,"tag":86,"props":1900,"children":1901},{"style":105},[1902],{"type":64,"value":808},{"type":58,"tag":86,"props":1904,"children":1905},{"style":99},[1906],{"type":64,"value":780},{"type":58,"tag":86,"props":1908,"children":1909},{"style":105},[1910],{"type":64,"value":817},{"type":58,"tag":86,"props":1912,"children":1913},{"style":99},[1914],{"type":64,"value":780},{"type":58,"tag":86,"props":1916,"children":1917},{"style":238},[1918],{"type":64,"value":826},{"type":58,"tag":86,"props":1920,"children":1921},{"style":105},[1922],{"type":64,"value":261},{"type":58,"tag":86,"props":1924,"children":1925},{"style":641},[1926],{"type":64,"value":835},{"type":58,"tag":86,"props":1928,"children":1929},{"style":99},[1930],{"type":64,"value":113},{"type":58,"tag":86,"props":1932,"children":1933},{"style":99},[1934],{"type":64,"value":992},{"type":58,"tag":86,"props":1936,"children":1937},{"class":88,"line":1409},[1938,1943,1947,1951,1956,1960,1966],{"type":58,"tag":86,"props":1939,"children":1940},{"style":273},[1941],{"type":64,"value":1942},"  context",{"type":58,"tag":86,"props":1944,"children":1945},{"style":99},[1946],{"type":64,"value":281},{"type":58,"tag":86,"props":1948,"children":1949},{"style":99},[1950],{"type":64,"value":102},{"type":58,"tag":86,"props":1952,"children":1953},{"style":273},[1954],{"type":64,"value":1955}," skipBatch",{"type":58,"tag":86,"props":1957,"children":1958},{"style":99},[1959],{"type":64,"value":281},{"type":58,"tag":86,"props":1961,"children":1963},{"style":1962},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1964],{"type":64,"value":1965}," true",{"type":58,"tag":86,"props":1967,"children":1968},{"style":99},[1969],{"type":64,"value":1970}," },\n",{"type":58,"tag":86,"props":1972,"children":1973},{"class":88,"line":1421},[1974,1978,1982],{"type":58,"tag":86,"props":1975,"children":1976},{"style":99},[1977],{"type":64,"value":392},{"type":58,"tag":86,"props":1979,"children":1980},{"style":105},[1981],{"type":64,"value":366},{"type":58,"tag":86,"props":1983,"children":1984},{"style":99},[1985],{"type":64,"value":158},{"type":58,"tag":421,"props":1987,"children":1989},{"id":1988},"httpbatchstreamlink-stream-responses-as-they-arrive",[1990],{"type":64,"value":1991},"httpBatchStreamLink -- Stream Responses as They Arrive",{"type":58,"tag":74,"props":1993,"children":1995},{"className":76,"code":1994,"language":78,"meta":79,"style":79},"import { createTRPCClient, httpBatchStreamLink } from '@trpc\u002Fclient';\nimport type { AppRouter } from '.\u002Fserver';\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [\n    httpBatchStreamLink({\n      url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n    }),\n  ],\n});\n\nconst iterable = await client.examples.iterable.query();\nfor await (const value of iterable) {\n  console.log(value);\n}\n",[1996],{"type":58,"tag":82,"props":1997,"children":1998},{"__ignoreMap":79},[1999,2047,2090,2097,2136,2151,2167,2194,2209,2220,2235,2242,2300,2339,2373],{"type":58,"tag":86,"props":2000,"children":2001},{"class":88,"line":89},[2002,2006,2010,2014,2018,2023,2027,2031,2035,2039,2043],{"type":58,"tag":86,"props":2003,"children":2004},{"style":93},[2005],{"type":64,"value":96},{"type":58,"tag":86,"props":2007,"children":2008},{"style":99},[2009],{"type":64,"value":102},{"type":58,"tag":86,"props":2011,"children":2012},{"style":105},[2013],{"type":64,"value":108},{"type":58,"tag":86,"props":2015,"children":2016},{"style":99},[2017],{"type":64,"value":113},{"type":58,"tag":86,"props":2019,"children":2020},{"style":105},[2021],{"type":64,"value":2022}," httpBatchStreamLink",{"type":58,"tag":86,"props":2024,"children":2025},{"style":99},[2026],{"type":64,"value":132},{"type":58,"tag":86,"props":2028,"children":2029},{"style":93},[2030],{"type":64,"value":137},{"type":58,"tag":86,"props":2032,"children":2033},{"style":99},[2034],{"type":64,"value":142},{"type":58,"tag":86,"props":2036,"children":2037},{"style":145},[2038],{"type":64,"value":148},{"type":58,"tag":86,"props":2040,"children":2041},{"style":99},[2042],{"type":64,"value":153},{"type":58,"tag":86,"props":2044,"children":2045},{"style":99},[2046],{"type":64,"value":158},{"type":58,"tag":86,"props":2048,"children":2049},{"class":88,"line":161},[2050,2054,2058,2062,2066,2070,2074,2078,2082,2086],{"type":58,"tag":86,"props":2051,"children":2052},{"style":93},[2053],{"type":64,"value":96},{"type":58,"tag":86,"props":2055,"children":2056},{"style":93},[2057],{"type":64,"value":171},{"type":58,"tag":86,"props":2059,"children":2060},{"style":99},[2061],{"type":64,"value":102},{"type":58,"tag":86,"props":2063,"children":2064},{"style":105},[2065],{"type":64,"value":180},{"type":58,"tag":86,"props":2067,"children":2068},{"style":99},[2069],{"type":64,"value":132},{"type":58,"tag":86,"props":2071,"children":2072},{"style":93},[2073],{"type":64,"value":137},{"type":58,"tag":86,"props":2075,"children":2076},{"style":99},[2077],{"type":64,"value":142},{"type":58,"tag":86,"props":2079,"children":2080},{"style":145},[2081],{"type":64,"value":197},{"type":58,"tag":86,"props":2083,"children":2084},{"style":99},[2085],{"type":64,"value":153},{"type":58,"tag":86,"props":2087,"children":2088},{"style":99},[2089],{"type":64,"value":158},{"type":58,"tag":86,"props":2091,"children":2092},{"class":88,"line":208},[2093],{"type":58,"tag":86,"props":2094,"children":2095},{"emptyLinePlaceholder":212},[2096],{"type":64,"value":215},{"type":58,"tag":86,"props":2098,"children":2099},{"class":88,"line":218},[2100,2104,2108,2112,2116,2120,2124,2128,2132],{"type":58,"tag":86,"props":2101,"children":2102},{"style":222},[2103],{"type":64,"value":225},{"type":58,"tag":86,"props":2105,"children":2106},{"style":105},[2107],{"type":64,"value":230},{"type":58,"tag":86,"props":2109,"children":2110},{"style":99},[2111],{"type":64,"value":235},{"type":58,"tag":86,"props":2113,"children":2114},{"style":238},[2115],{"type":64,"value":108},{"type":58,"tag":86,"props":2117,"children":2118},{"style":99},[2119],{"type":64,"value":245},{"type":58,"tag":86,"props":2121,"children":2122},{"style":248},[2123],{"type":64,"value":251},{"type":58,"tag":86,"props":2125,"children":2126},{"style":99},[2127],{"type":64,"value":256},{"type":58,"tag":86,"props":2129,"children":2130},{"style":105},[2131],{"type":64,"value":261},{"type":58,"tag":86,"props":2133,"children":2134},{"style":99},[2135],{"type":64,"value":266},{"type":58,"tag":86,"props":2137,"children":2138},{"class":88,"line":269},[2139,2143,2147],{"type":58,"tag":86,"props":2140,"children":2141},{"style":273},[2142],{"type":64,"value":276},{"type":58,"tag":86,"props":2144,"children":2145},{"style":99},[2146],{"type":64,"value":281},{"type":58,"tag":86,"props":2148,"children":2149},{"style":105},[2150],{"type":64,"value":286},{"type":58,"tag":86,"props":2152,"children":2153},{"class":88,"line":289},[2154,2159,2163],{"type":58,"tag":86,"props":2155,"children":2156},{"style":238},[2157],{"type":64,"value":2158},"    httpBatchStreamLink",{"type":58,"tag":86,"props":2160,"children":2161},{"style":105},[2162],{"type":64,"value":261},{"type":58,"tag":86,"props":2164,"children":2165},{"style":99},[2166],{"type":64,"value":266},{"type":58,"tag":86,"props":2168,"children":2169},{"class":88,"line":308},[2170,2174,2178,2182,2186,2190],{"type":58,"tag":86,"props":2171,"children":2172},{"style":273},[2173],{"type":64,"value":331},{"type":58,"tag":86,"props":2175,"children":2176},{"style":99},[2177],{"type":64,"value":281},{"type":58,"tag":86,"props":2179,"children":2180},{"style":99},[2181],{"type":64,"value":142},{"type":58,"tag":86,"props":2183,"children":2184},{"style":145},[2185],{"type":64,"value":344},{"type":58,"tag":86,"props":2187,"children":2188},{"style":99},[2189],{"type":64,"value":153},{"type":58,"tag":86,"props":2191,"children":2192},{"style":99},[2193],{"type":64,"value":305},{"type":58,"tag":86,"props":2195,"children":2196},{"class":88,"line":325},[2197,2201,2205],{"type":58,"tag":86,"props":2198,"children":2199},{"style":99},[2200],{"type":64,"value":361},{"type":58,"tag":86,"props":2202,"children":2203},{"style":105},[2204],{"type":64,"value":366},{"type":58,"tag":86,"props":2206,"children":2207},{"style":99},[2208],{"type":64,"value":305},{"type":58,"tag":86,"props":2210,"children":2211},{"class":88,"line":355},[2212,2216],{"type":58,"tag":86,"props":2213,"children":2214},{"style":105},[2215],{"type":64,"value":379},{"type":58,"tag":86,"props":2217,"children":2218},{"style":99},[2219],{"type":64,"value":305},{"type":58,"tag":86,"props":2221,"children":2222},{"class":88,"line":373},[2223,2227,2231],{"type":58,"tag":86,"props":2224,"children":2225},{"style":99},[2226],{"type":64,"value":392},{"type":58,"tag":86,"props":2228,"children":2229},{"style":105},[2230],{"type":64,"value":366},{"type":58,"tag":86,"props":2232,"children":2233},{"style":99},[2234],{"type":64,"value":158},{"type":58,"tag":86,"props":2236,"children":2237},{"class":88,"line":386},[2238],{"type":58,"tag":86,"props":2239,"children":2240},{"emptyLinePlaceholder":212},[2241],{"type":64,"value":215},{"type":58,"tag":86,"props":2243,"children":2244},{"class":88,"line":698},[2245,2249,2254,2258,2262,2266,2270,2275,2279,2284,2288,2292,2296],{"type":58,"tag":86,"props":2246,"children":2247},{"style":222},[2248],{"type":64,"value":225},{"type":58,"tag":86,"props":2250,"children":2251},{"style":105},[2252],{"type":64,"value":2253}," iterable ",{"type":58,"tag":86,"props":2255,"children":2256},{"style":99},[2257],{"type":64,"value":235},{"type":58,"tag":86,"props":2259,"children":2260},{"style":93},[2261],{"type":64,"value":770},{"type":58,"tag":86,"props":2263,"children":2264},{"style":105},[2265],{"type":64,"value":1894},{"type":58,"tag":86,"props":2267,"children":2268},{"style":99},[2269],{"type":64,"value":780},{"type":58,"tag":86,"props":2271,"children":2272},{"style":105},[2273],{"type":64,"value":2274},"examples",{"type":58,"tag":86,"props":2276,"children":2277},{"style":99},[2278],{"type":64,"value":780},{"type":58,"tag":86,"props":2280,"children":2281},{"style":105},[2282],{"type":64,"value":2283},"iterable",{"type":58,"tag":86,"props":2285,"children":2286},{"style":99},[2287],{"type":64,"value":780},{"type":58,"tag":86,"props":2289,"children":2290},{"style":238},[2291],{"type":64,"value":826},{"type":58,"tag":86,"props":2293,"children":2294},{"style":105},[2295],{"type":64,"value":300},{"type":58,"tag":86,"props":2297,"children":2298},{"style":99},[2299],{"type":64,"value":158},{"type":58,"tag":86,"props":2301,"children":2302},{"class":88,"line":714},[2303,2308,2312,2316,2320,2325,2330,2335],{"type":58,"tag":86,"props":2304,"children":2305},{"style":93},[2306],{"type":64,"value":2307},"for",{"type":58,"tag":86,"props":2309,"children":2310},{"style":93},[2311],{"type":64,"value":770},{"type":58,"tag":86,"props":2313,"children":2314},{"style":105},[2315],{"type":64,"value":1204},{"type":58,"tag":86,"props":2317,"children":2318},{"style":222},[2319],{"type":64,"value":225},{"type":58,"tag":86,"props":2321,"children":2322},{"style":105},[2323],{"type":64,"value":2324}," value ",{"type":58,"tag":86,"props":2326,"children":2327},{"style":99},[2328],{"type":64,"value":2329},"of",{"type":58,"tag":86,"props":2331,"children":2332},{"style":105},[2333],{"type":64,"value":2334}," iterable) ",{"type":58,"tag":86,"props":2336,"children":2337},{"style":99},[2338],{"type":64,"value":266},{"type":58,"tag":86,"props":2340,"children":2341},{"class":88,"line":722},[2342,2347,2351,2356,2360,2365,2369],{"type":58,"tag":86,"props":2343,"children":2344},{"style":105},[2345],{"type":64,"value":2346},"  console",{"type":58,"tag":86,"props":2348,"children":2349},{"style":99},[2350],{"type":64,"value":780},{"type":58,"tag":86,"props":2352,"children":2353},{"style":238},[2354],{"type":64,"value":2355},"log",{"type":58,"tag":86,"props":2357,"children":2358},{"style":273},[2359],{"type":64,"value":261},{"type":58,"tag":86,"props":2361,"children":2362},{"style":105},[2363],{"type":64,"value":2364},"value",{"type":58,"tag":86,"props":2366,"children":2367},{"style":273},[2368],{"type":64,"value":366},{"type":58,"tag":86,"props":2370,"children":2371},{"style":99},[2372],{"type":64,"value":158},{"type":58,"tag":86,"props":2374,"children":2375},{"class":88,"line":793},[2376],{"type":58,"tag":86,"props":2377,"children":2378},{"style":99},[2379],{"type":64,"value":2380},"}\n",{"type":58,"tag":421,"props":2382,"children":2384},{"id":2383},"wslink-websocket-terminating-link",[2385],{"type":64,"value":2386},"wsLink -- WebSocket Terminating Link",{"type":58,"tag":74,"props":2388,"children":2390},{"className":76,"code":2389,"language":78,"meta":79,"style":79},"import { createTRPCClient, createWSClient, wsLink } from '@trpc\u002Fclient';\nimport type { AppRouter } from '.\u002Fserver';\n\nconst wsClient = createWSClient({\n  url: 'ws:\u002F\u002Flocalhost:3000',\n});\n\nconst client = createTRPCClient\u003CAppRouter>({\n  links: [wsLink\u003CAppRouter>({ client: wsClient })],\n});\n",[2391],{"type":58,"tag":82,"props":2392,"children":2393},{"__ignoreMap":79},[2394,2451,2494,2501,2529,2558,2573,2580,2619,2684],{"type":58,"tag":86,"props":2395,"children":2396},{"class":88,"line":89},[2397,2401,2405,2409,2413,2418,2422,2427,2431,2435,2439,2443,2447],{"type":58,"tag":86,"props":2398,"children":2399},{"style":93},[2400],{"type":64,"value":96},{"type":58,"tag":86,"props":2402,"children":2403},{"style":99},[2404],{"type":64,"value":102},{"type":58,"tag":86,"props":2406,"children":2407},{"style":105},[2408],{"type":64,"value":108},{"type":58,"tag":86,"props":2410,"children":2411},{"style":99},[2412],{"type":64,"value":113},{"type":58,"tag":86,"props":2414,"children":2415},{"style":105},[2416],{"type":64,"value":2417}," createWSClient",{"type":58,"tag":86,"props":2419,"children":2420},{"style":99},[2421],{"type":64,"value":113},{"type":58,"tag":86,"props":2423,"children":2424},{"style":105},[2425],{"type":64,"value":2426}," wsLink",{"type":58,"tag":86,"props":2428,"children":2429},{"style":99},[2430],{"type":64,"value":132},{"type":58,"tag":86,"props":2432,"children":2433},{"style":93},[2434],{"type":64,"value":137},{"type":58,"tag":86,"props":2436,"children":2437},{"style":99},[2438],{"type":64,"value":142},{"type":58,"tag":86,"props":2440,"children":2441},{"style":145},[2442],{"type":64,"value":148},{"type":58,"tag":86,"props":2444,"children":2445},{"style":99},[2446],{"type":64,"value":153},{"type":58,"tag":86,"props":2448,"children":2449},{"style":99},[2450],{"type":64,"value":158},{"type":58,"tag":86,"props":2452,"children":2453},{"class":88,"line":161},[2454,2458,2462,2466,2470,2474,2478,2482,2486,2490],{"type":58,"tag":86,"props":2455,"children":2456},{"style":93},[2457],{"type":64,"value":96},{"type":58,"tag":86,"props":2459,"children":2460},{"style":93},[2461],{"type":64,"value":171},{"type":58,"tag":86,"props":2463,"children":2464},{"style":99},[2465],{"type":64,"value":102},{"type":58,"tag":86,"props":2467,"children":2468},{"style":105},[2469],{"type":64,"value":180},{"type":58,"tag":86,"props":2471,"children":2472},{"style":99},[2473],{"type":64,"value":132},{"type":58,"tag":86,"props":2475,"children":2476},{"style":93},[2477],{"type":64,"value":137},{"type":58,"tag":86,"props":2479,"children":2480},{"style":99},[2481],{"type":64,"value":142},{"type":58,"tag":86,"props":2483,"children":2484},{"style":145},[2485],{"type":64,"value":197},{"type":58,"tag":86,"props":2487,"children":2488},{"style":99},[2489],{"type":64,"value":153},{"type":58,"tag":86,"props":2491,"children":2492},{"style":99},[2493],{"type":64,"value":158},{"type":58,"tag":86,"props":2495,"children":2496},{"class":88,"line":208},[2497],{"type":58,"tag":86,"props":2498,"children":2499},{"emptyLinePlaceholder":212},[2500],{"type":64,"value":215},{"type":58,"tag":86,"props":2502,"children":2503},{"class":88,"line":218},[2504,2508,2513,2517,2521,2525],{"type":58,"tag":86,"props":2505,"children":2506},{"style":222},[2507],{"type":64,"value":225},{"type":58,"tag":86,"props":2509,"children":2510},{"style":105},[2511],{"type":64,"value":2512}," wsClient ",{"type":58,"tag":86,"props":2514,"children":2515},{"style":99},[2516],{"type":64,"value":235},{"type":58,"tag":86,"props":2518,"children":2519},{"style":238},[2520],{"type":64,"value":2417},{"type":58,"tag":86,"props":2522,"children":2523},{"style":105},[2524],{"type":64,"value":261},{"type":58,"tag":86,"props":2526,"children":2527},{"style":99},[2528],{"type":64,"value":266},{"type":58,"tag":86,"props":2530,"children":2531},{"class":88,"line":269},[2532,2537,2541,2545,2550,2554],{"type":58,"tag":86,"props":2533,"children":2534},{"style":273},[2535],{"type":64,"value":2536},"  url",{"type":58,"tag":86,"props":2538,"children":2539},{"style":99},[2540],{"type":64,"value":281},{"type":58,"tag":86,"props":2542,"children":2543},{"style":99},[2544],{"type":64,"value":142},{"type":58,"tag":86,"props":2546,"children":2547},{"style":145},[2548],{"type":64,"value":2549},"ws:\u002F\u002Flocalhost:3000",{"type":58,"tag":86,"props":2551,"children":2552},{"style":99},[2553],{"type":64,"value":153},{"type":58,"tag":86,"props":2555,"children":2556},{"style":99},[2557],{"type":64,"value":305},{"type":58,"tag":86,"props":2559,"children":2560},{"class":88,"line":289},[2561,2565,2569],{"type":58,"tag":86,"props":2562,"children":2563},{"style":99},[2564],{"type":64,"value":392},{"type":58,"tag":86,"props":2566,"children":2567},{"style":105},[2568],{"type":64,"value":366},{"type":58,"tag":86,"props":2570,"children":2571},{"style":99},[2572],{"type":64,"value":158},{"type":58,"tag":86,"props":2574,"children":2575},{"class":88,"line":308},[2576],{"type":58,"tag":86,"props":2577,"children":2578},{"emptyLinePlaceholder":212},[2579],{"type":64,"value":215},{"type":58,"tag":86,"props":2581,"children":2582},{"class":88,"line":325},[2583,2587,2591,2595,2599,2603,2607,2611,2615],{"type":58,"tag":86,"props":2584,"children":2585},{"style":222},[2586],{"type":64,"value":225},{"type":58,"tag":86,"props":2588,"children":2589},{"style":105},[2590],{"type":64,"value":230},{"type":58,"tag":86,"props":2592,"children":2593},{"style":99},[2594],{"type":64,"value":235},{"type":58,"tag":86,"props":2596,"children":2597},{"style":238},[2598],{"type":64,"value":108},{"type":58,"tag":86,"props":2600,"children":2601},{"style":99},[2602],{"type":64,"value":245},{"type":58,"tag":86,"props":2604,"children":2605},{"style":248},[2606],{"type":64,"value":251},{"type":58,"tag":86,"props":2608,"children":2609},{"style":99},[2610],{"type":64,"value":256},{"type":58,"tag":86,"props":2612,"children":2613},{"style":105},[2614],{"type":64,"value":261},{"type":58,"tag":86,"props":2616,"children":2617},{"style":99},[2618],{"type":64,"value":266},{"type":58,"tag":86,"props":2620,"children":2621},{"class":88,"line":355},[2622,2626,2630,2634,2639,2643,2647,2651,2655,2659,2663,2667,2671,2675,2680],{"type":58,"tag":86,"props":2623,"children":2624},{"style":273},[2625],{"type":64,"value":276},{"type":58,"tag":86,"props":2627,"children":2628},{"style":99},[2629],{"type":64,"value":281},{"type":58,"tag":86,"props":2631,"children":2632},{"style":105},[2633],{"type":64,"value":732},{"type":58,"tag":86,"props":2635,"children":2636},{"style":238},[2637],{"type":64,"value":2638},"wsLink",{"type":58,"tag":86,"props":2640,"children":2641},{"style":99},[2642],{"type":64,"value":245},{"type":58,"tag":86,"props":2644,"children":2645},{"style":248},[2646],{"type":64,"value":251},{"type":58,"tag":86,"props":2648,"children":2649},{"style":99},[2650],{"type":64,"value":256},{"type":58,"tag":86,"props":2652,"children":2653},{"style":105},[2654],{"type":64,"value":261},{"type":58,"tag":86,"props":2656,"children":2657},{"style":99},[2658],{"type":64,"value":1733},{"type":58,"tag":86,"props":2660,"children":2661},{"style":273},[2662],{"type":64,"value":1894},{"type":58,"tag":86,"props":2664,"children":2665},{"style":99},[2666],{"type":64,"value":281},{"type":58,"tag":86,"props":2668,"children":2669},{"style":105},[2670],{"type":64,"value":2512},{"type":58,"tag":86,"props":2672,"children":2673},{"style":99},[2674],{"type":64,"value":392},{"type":58,"tag":86,"props":2676,"children":2677},{"style":105},[2678],{"type":64,"value":2679},")]",{"type":58,"tag":86,"props":2681,"children":2682},{"style":99},[2683],{"type":64,"value":305},{"type":58,"tag":86,"props":2685,"children":2686},{"class":88,"line":373},[2687,2691,2695],{"type":58,"tag":86,"props":2688,"children":2689},{"style":99},[2690],{"type":64,"value":392},{"type":58,"tag":86,"props":2692,"children":2693},{"style":105},[2694],{"type":64,"value":366},{"type":58,"tag":86,"props":2696,"children":2697},{"style":99},[2698],{"type":64,"value":158},{"type":58,"tag":421,"props":2700,"children":2702},{"id":2701},"custom-link",[2703],{"type":64,"value":2704},"Custom Link",{"type":58,"tag":74,"props":2706,"children":2708},{"className":76,"code":2707,"language":78,"meta":79,"style":79},"import { TRPCLink } from '@trpc\u002Fclient';\nimport { observable } from '@trpc\u002Fserver\u002Fobservable';\nimport type { AppRouter } from '.\u002Fserver';\n\nexport const timingLink: TRPCLink\u003CAppRouter> = () => {\n  return ({ next, op }) => {\n    return observable((observer) => {\n      const start = Date.now();\n      const unsubscribe = next(op).subscribe({\n        next(value) {\n          observer.next(value);\n        },\n        error(err) {\n          console.error(`${op.path} failed in ${Date.now() - start}ms`);\n          observer.error(err);\n        },\n        complete() {\n          console.log(`${op.path} completed in ${Date.now() - start}ms`);\n          observer.complete();\n        },\n      });\n      return unsubscribe;\n    });\n  };\n};\n",[2709],{"type":58,"tag":82,"props":2710,"children":2711},{"__ignoreMap":79},[2712,2752,2793,2836,2843,2898,2937,2974,3013,3062,3086,3118,3126,3151,3253,3284,3291,3307,3399,3423,3430,3445,3462,3478,3487],{"type":58,"tag":86,"props":2713,"children":2714},{"class":88,"line":89},[2715,2719,2723,2728,2732,2736,2740,2744,2748],{"type":58,"tag":86,"props":2716,"children":2717},{"style":93},[2718],{"type":64,"value":96},{"type":58,"tag":86,"props":2720,"children":2721},{"style":99},[2722],{"type":64,"value":102},{"type":58,"tag":86,"props":2724,"children":2725},{"style":105},[2726],{"type":64,"value":2727}," TRPCLink",{"type":58,"tag":86,"props":2729,"children":2730},{"style":99},[2731],{"type":64,"value":132},{"type":58,"tag":86,"props":2733,"children":2734},{"style":93},[2735],{"type":64,"value":137},{"type":58,"tag":86,"props":2737,"children":2738},{"style":99},[2739],{"type":64,"value":142},{"type":58,"tag":86,"props":2741,"children":2742},{"style":145},[2743],{"type":64,"value":148},{"type":58,"tag":86,"props":2745,"children":2746},{"style":99},[2747],{"type":64,"value":153},{"type":58,"tag":86,"props":2749,"children":2750},{"style":99},[2751],{"type":64,"value":158},{"type":58,"tag":86,"props":2753,"children":2754},{"class":88,"line":161},[2755,2759,2763,2768,2772,2776,2780,2785,2789],{"type":58,"tag":86,"props":2756,"children":2757},{"style":93},[2758],{"type":64,"value":96},{"type":58,"tag":86,"props":2760,"children":2761},{"style":99},[2762],{"type":64,"value":102},{"type":58,"tag":86,"props":2764,"children":2765},{"style":105},[2766],{"type":64,"value":2767}," observable",{"type":58,"tag":86,"props":2769,"children":2770},{"style":99},[2771],{"type":64,"value":132},{"type":58,"tag":86,"props":2773,"children":2774},{"style":93},[2775],{"type":64,"value":137},{"type":58,"tag":86,"props":2777,"children":2778},{"style":99},[2779],{"type":64,"value":142},{"type":58,"tag":86,"props":2781,"children":2782},{"style":145},[2783],{"type":64,"value":2784},"@trpc\u002Fserver\u002Fobservable",{"type":58,"tag":86,"props":2786,"children":2787},{"style":99},[2788],{"type":64,"value":153},{"type":58,"tag":86,"props":2790,"children":2791},{"style":99},[2792],{"type":64,"value":158},{"type":58,"tag":86,"props":2794,"children":2795},{"class":88,"line":208},[2796,2800,2804,2808,2812,2816,2820,2824,2828,2832],{"type":58,"tag":86,"props":2797,"children":2798},{"style":93},[2799],{"type":64,"value":96},{"type":58,"tag":86,"props":2801,"children":2802},{"style":93},[2803],{"type":64,"value":171},{"type":58,"tag":86,"props":2805,"children":2806},{"style":99},[2807],{"type":64,"value":102},{"type":58,"tag":86,"props":2809,"children":2810},{"style":105},[2811],{"type":64,"value":180},{"type":58,"tag":86,"props":2813,"children":2814},{"style":99},[2815],{"type":64,"value":132},{"type":58,"tag":86,"props":2817,"children":2818},{"style":93},[2819],{"type":64,"value":137},{"type":58,"tag":86,"props":2821,"children":2822},{"style":99},[2823],{"type":64,"value":142},{"type":58,"tag":86,"props":2825,"children":2826},{"style":145},[2827],{"type":64,"value":197},{"type":58,"tag":86,"props":2829,"children":2830},{"style":99},[2831],{"type":64,"value":153},{"type":58,"tag":86,"props":2833,"children":2834},{"style":99},[2835],{"type":64,"value":158},{"type":58,"tag":86,"props":2837,"children":2838},{"class":88,"line":218},[2839],{"type":58,"tag":86,"props":2840,"children":2841},{"emptyLinePlaceholder":212},[2842],{"type":64,"value":215},{"type":58,"tag":86,"props":2844,"children":2845},{"class":88,"line":269},[2846,2851,2856,2861,2865,2869,2873,2877,2881,2885,2890,2894],{"type":58,"tag":86,"props":2847,"children":2848},{"style":93},[2849],{"type":64,"value":2850},"export",{"type":58,"tag":86,"props":2852,"children":2853},{"style":222},[2854],{"type":64,"value":2855}," const",{"type":58,"tag":86,"props":2857,"children":2858},{"style":105},[2859],{"type":64,"value":2860}," timingLink",{"type":58,"tag":86,"props":2862,"children":2863},{"style":99},[2864],{"type":64,"value":281},{"type":58,"tag":86,"props":2866,"children":2867},{"style":248},[2868],{"type":64,"value":2727},{"type":58,"tag":86,"props":2870,"children":2871},{"style":99},[2872],{"type":64,"value":245},{"type":58,"tag":86,"props":2874,"children":2875},{"style":248},[2876],{"type":64,"value":251},{"type":58,"tag":86,"props":2878,"children":2879},{"style":99},[2880],{"type":64,"value":256},{"type":58,"tag":86,"props":2882,"children":2883},{"style":99},[2884],{"type":64,"value":765},{"type":58,"tag":86,"props":2886,"children":2887},{"style":99},[2888],{"type":64,"value":2889}," ()",{"type":58,"tag":86,"props":2891,"children":2892},{"style":222},[2893],{"type":64,"value":1219},{"type":58,"tag":86,"props":2895,"children":2896},{"style":99},[2897],{"type":64,"value":992},{"type":58,"tag":86,"props":2899,"children":2900},{"class":88,"line":289},[2901,2906,2911,2916,2920,2924,2929,2933],{"type":58,"tag":86,"props":2902,"children":2903},{"style":93},[2904],{"type":64,"value":2905},"  return",{"type":58,"tag":86,"props":2907,"children":2908},{"style":99},[2909],{"type":64,"value":2910}," ({",{"type":58,"tag":86,"props":2912,"children":2913},{"style":1207},[2914],{"type":64,"value":2915}," next",{"type":58,"tag":86,"props":2917,"children":2918},{"style":99},[2919],{"type":64,"value":113},{"type":58,"tag":86,"props":2921,"children":2922},{"style":1207},[2923],{"type":64,"value":1224},{"type":58,"tag":86,"props":2925,"children":2926},{"style":99},[2927],{"type":64,"value":2928}," })",{"type":58,"tag":86,"props":2930,"children":2931},{"style":222},[2932],{"type":64,"value":1219},{"type":58,"tag":86,"props":2934,"children":2935},{"style":99},[2936],{"type":64,"value":992},{"type":58,"tag":86,"props":2938,"children":2939},{"class":88,"line":308},[2940,2945,2949,2953,2957,2962,2966,2970],{"type":58,"tag":86,"props":2941,"children":2942},{"style":93},[2943],{"type":64,"value":2944},"    return",{"type":58,"tag":86,"props":2946,"children":2947},{"style":238},[2948],{"type":64,"value":2767},{"type":58,"tag":86,"props":2950,"children":2951},{"style":273},[2952],{"type":64,"value":261},{"type":58,"tag":86,"props":2954,"children":2955},{"style":99},[2956],{"type":64,"value":261},{"type":58,"tag":86,"props":2958,"children":2959},{"style":1207},[2960],{"type":64,"value":2961},"observer",{"type":58,"tag":86,"props":2963,"children":2964},{"style":99},[2965],{"type":64,"value":366},{"type":58,"tag":86,"props":2967,"children":2968},{"style":222},[2969],{"type":64,"value":1219},{"type":58,"tag":86,"props":2971,"children":2972},{"style":99},[2973],{"type":64,"value":992},{"type":58,"tag":86,"props":2975,"children":2976},{"class":88,"line":325},[2977,2982,2987,2991,2996,3000,3005,3009],{"type":58,"tag":86,"props":2978,"children":2979},{"style":222},[2980],{"type":64,"value":2981},"      const",{"type":58,"tag":86,"props":2983,"children":2984},{"style":105},[2985],{"type":64,"value":2986}," start",{"type":58,"tag":86,"props":2988,"children":2989},{"style":99},[2990],{"type":64,"value":765},{"type":58,"tag":86,"props":2992,"children":2993},{"style":105},[2994],{"type":64,"value":2995}," Date",{"type":58,"tag":86,"props":2997,"children":2998},{"style":99},[2999],{"type":64,"value":780},{"type":58,"tag":86,"props":3001,"children":3002},{"style":238},[3003],{"type":64,"value":3004},"now",{"type":58,"tag":86,"props":3006,"children":3007},{"style":273},[3008],{"type":64,"value":300},{"type":58,"tag":86,"props":3010,"children":3011},{"style":99},[3012],{"type":64,"value":158},{"type":58,"tag":86,"props":3014,"children":3015},{"class":88,"line":355},[3016,3020,3025,3029,3033,3037,3041,3045,3049,3054,3058],{"type":58,"tag":86,"props":3017,"children":3018},{"style":222},[3019],{"type":64,"value":2981},{"type":58,"tag":86,"props":3021,"children":3022},{"style":105},[3023],{"type":64,"value":3024}," unsubscribe",{"type":58,"tag":86,"props":3026,"children":3027},{"style":99},[3028],{"type":64,"value":765},{"type":58,"tag":86,"props":3030,"children":3031},{"style":238},[3032],{"type":64,"value":2915},{"type":58,"tag":86,"props":3034,"children":3035},{"style":273},[3036],{"type":64,"value":261},{"type":58,"tag":86,"props":3038,"children":3039},{"style":105},[3040],{"type":64,"value":1210},{"type":58,"tag":86,"props":3042,"children":3043},{"style":273},[3044],{"type":64,"value":366},{"type":58,"tag":86,"props":3046,"children":3047},{"style":99},[3048],{"type":64,"value":780},{"type":58,"tag":86,"props":3050,"children":3051},{"style":238},[3052],{"type":64,"value":3053},"subscribe",{"type":58,"tag":86,"props":3055,"children":3056},{"style":273},[3057],{"type":64,"value":261},{"type":58,"tag":86,"props":3059,"children":3060},{"style":99},[3061],{"type":64,"value":266},{"type":58,"tag":86,"props":3063,"children":3064},{"class":88,"line":373},[3065,3070,3074,3078,3082],{"type":58,"tag":86,"props":3066,"children":3067},{"style":273},[3068],{"type":64,"value":3069},"        next",{"type":58,"tag":86,"props":3071,"children":3072},{"style":99},[3073],{"type":64,"value":261},{"type":58,"tag":86,"props":3075,"children":3076},{"style":1207},[3077],{"type":64,"value":2364},{"type":58,"tag":86,"props":3079,"children":3080},{"style":99},[3081],{"type":64,"value":366},{"type":58,"tag":86,"props":3083,"children":3084},{"style":99},[3085],{"type":64,"value":992},{"type":58,"tag":86,"props":3087,"children":3088},{"class":88,"line":386},[3089,3094,3098,3102,3106,3110,3114],{"type":58,"tag":86,"props":3090,"children":3091},{"style":105},[3092],{"type":64,"value":3093},"          observer",{"type":58,"tag":86,"props":3095,"children":3096},{"style":99},[3097],{"type":64,"value":780},{"type":58,"tag":86,"props":3099,"children":3100},{"style":238},[3101],{"type":64,"value":27},{"type":58,"tag":86,"props":3103,"children":3104},{"style":273},[3105],{"type":64,"value":261},{"type":58,"tag":86,"props":3107,"children":3108},{"style":105},[3109],{"type":64,"value":2364},{"type":58,"tag":86,"props":3111,"children":3112},{"style":273},[3113],{"type":64,"value":366},{"type":58,"tag":86,"props":3115,"children":3116},{"style":99},[3117],{"type":64,"value":158},{"type":58,"tag":86,"props":3119,"children":3120},{"class":88,"line":698},[3121],{"type":58,"tag":86,"props":3122,"children":3123},{"style":99},[3124],{"type":64,"value":3125},"        },\n",{"type":58,"tag":86,"props":3127,"children":3128},{"class":88,"line":714},[3129,3134,3138,3143,3147],{"type":58,"tag":86,"props":3130,"children":3131},{"style":273},[3132],{"type":64,"value":3133},"        error",{"type":58,"tag":86,"props":3135,"children":3136},{"style":99},[3137],{"type":64,"value":261},{"type":58,"tag":86,"props":3139,"children":3140},{"style":1207},[3141],{"type":64,"value":3142},"err",{"type":58,"tag":86,"props":3144,"children":3145},{"style":99},[3146],{"type":64,"value":366},{"type":58,"tag":86,"props":3148,"children":3149},{"style":99},[3150],{"type":64,"value":992},{"type":58,"tag":86,"props":3152,"children":3153},{"class":88,"line":722},[3154,3159,3163,3168,3172,3177,3181,3185,3190,3194,3199,3204,3209,3213,3217,3222,3227,3231,3235,3240,3245,3249],{"type":58,"tag":86,"props":3155,"children":3156},{"style":105},[3157],{"type":64,"value":3158},"          console",{"type":58,"tag":86,"props":3160,"children":3161},{"style":99},[3162],{"type":64,"value":780},{"type":58,"tag":86,"props":3164,"children":3165},{"style":238},[3166],{"type":64,"value":3167},"error",{"type":58,"tag":86,"props":3169,"children":3170},{"style":273},[3171],{"type":64,"value":261},{"type":58,"tag":86,"props":3173,"children":3174},{"style":99},[3175],{"type":64,"value":3176},"`${",{"type":58,"tag":86,"props":3178,"children":3179},{"style":105},[3180],{"type":64,"value":1210},{"type":58,"tag":86,"props":3182,"children":3183},{"style":99},[3184],{"type":64,"value":780},{"type":58,"tag":86,"props":3186,"children":3187},{"style":105},[3188],{"type":64,"value":3189},"path",{"type":58,"tag":86,"props":3191,"children":3192},{"style":99},[3193],{"type":64,"value":392},{"type":58,"tag":86,"props":3195,"children":3196},{"style":145},[3197],{"type":64,"value":3198}," failed in ",{"type":58,"tag":86,"props":3200,"children":3201},{"style":99},[3202],{"type":64,"value":3203},"${",{"type":58,"tag":86,"props":3205,"children":3206},{"style":105},[3207],{"type":64,"value":3208},"Date",{"type":58,"tag":86,"props":3210,"children":3211},{"style":99},[3212],{"type":64,"value":780},{"type":58,"tag":86,"props":3214,"children":3215},{"style":238},[3216],{"type":64,"value":3004},{"type":58,"tag":86,"props":3218,"children":3219},{"style":105},[3220],{"type":64,"value":3221},"() ",{"type":58,"tag":86,"props":3223,"children":3224},{"style":99},[3225],{"type":64,"value":3226},"-",{"type":58,"tag":86,"props":3228,"children":3229},{"style":105},[3230],{"type":64,"value":2986},{"type":58,"tag":86,"props":3232,"children":3233},{"style":99},[3234],{"type":64,"value":392},{"type":58,"tag":86,"props":3236,"children":3237},{"style":145},[3238],{"type":64,"value":3239},"ms",{"type":58,"tag":86,"props":3241,"children":3242},{"style":99},[3243],{"type":64,"value":3244},"`",{"type":58,"tag":86,"props":3246,"children":3247},{"style":273},[3248],{"type":64,"value":366},{"type":58,"tag":86,"props":3250,"children":3251},{"style":99},[3252],{"type":64,"value":158},{"type":58,"tag":86,"props":3254,"children":3255},{"class":88,"line":793},[3256,3260,3264,3268,3272,3276,3280],{"type":58,"tag":86,"props":3257,"children":3258},{"style":105},[3259],{"type":64,"value":3093},{"type":58,"tag":86,"props":3261,"children":3262},{"style":99},[3263],{"type":64,"value":780},{"type":58,"tag":86,"props":3265,"children":3266},{"style":238},[3267],{"type":64,"value":3167},{"type":58,"tag":86,"props":3269,"children":3270},{"style":273},[3271],{"type":64,"value":261},{"type":58,"tag":86,"props":3273,"children":3274},{"style":105},[3275],{"type":64,"value":3142},{"type":58,"tag":86,"props":3277,"children":3278},{"style":273},[3279],{"type":64,"value":366},{"type":58,"tag":86,"props":3281,"children":3282},{"style":99},[3283],{"type":64,"value":158},{"type":58,"tag":86,"props":3285,"children":3286},{"class":88,"line":846},[3287],{"type":58,"tag":86,"props":3288,"children":3289},{"style":99},[3290],{"type":64,"value":3125},{"type":58,"tag":86,"props":3292,"children":3293},{"class":88,"line":895},[3294,3299,3303],{"type":58,"tag":86,"props":3295,"children":3296},{"style":273},[3297],{"type":64,"value":3298},"        complete",{"type":58,"tag":86,"props":3300,"children":3301},{"style":99},[3302],{"type":64,"value":300},{"type":58,"tag":86,"props":3304,"children":3305},{"style":99},[3306],{"type":64,"value":992},{"type":58,"tag":86,"props":3308,"children":3309},{"class":88,"line":944},[3310,3314,3318,3322,3326,3330,3334,3338,3342,3346,3351,3355,3359,3363,3367,3371,3375,3379,3383,3387,3391,3395],{"type":58,"tag":86,"props":3311,"children":3312},{"style":105},[3313],{"type":64,"value":3158},{"type":58,"tag":86,"props":3315,"children":3316},{"style":99},[3317],{"type":64,"value":780},{"type":58,"tag":86,"props":3319,"children":3320},{"style":238},[3321],{"type":64,"value":2355},{"type":58,"tag":86,"props":3323,"children":3324},{"style":273},[3325],{"type":64,"value":261},{"type":58,"tag":86,"props":3327,"children":3328},{"style":99},[3329],{"type":64,"value":3176},{"type":58,"tag":86,"props":3331,"children":3332},{"style":105},[3333],{"type":64,"value":1210},{"type":58,"tag":86,"props":3335,"children":3336},{"style":99},[3337],{"type":64,"value":780},{"type":58,"tag":86,"props":3339,"children":3340},{"style":105},[3341],{"type":64,"value":3189},{"type":58,"tag":86,"props":3343,"children":3344},{"style":99},[3345],{"type":64,"value":392},{"type":58,"tag":86,"props":3347,"children":3348},{"style":145},[3349],{"type":64,"value":3350}," completed in ",{"type":58,"tag":86,"props":3352,"children":3353},{"style":99},[3354],{"type":64,"value":3203},{"type":58,"tag":86,"props":3356,"children":3357},{"style":105},[3358],{"type":64,"value":3208},{"type":58,"tag":86,"props":3360,"children":3361},{"style":99},[3362],{"type":64,"value":780},{"type":58,"tag":86,"props":3364,"children":3365},{"style":238},[3366],{"type":64,"value":3004},{"type":58,"tag":86,"props":3368,"children":3369},{"style":105},[3370],{"type":64,"value":3221},{"type":58,"tag":86,"props":3372,"children":3373},{"style":99},[3374],{"type":64,"value":3226},{"type":58,"tag":86,"props":3376,"children":3377},{"style":105},[3378],{"type":64,"value":2986},{"type":58,"tag":86,"props":3380,"children":3381},{"style":99},[3382],{"type":64,"value":392},{"type":58,"tag":86,"props":3384,"children":3385},{"style":145},[3386],{"type":64,"value":3239},{"type":58,"tag":86,"props":3388,"children":3389},{"style":99},[3390],{"type":64,"value":3244},{"type":58,"tag":86,"props":3392,"children":3393},{"style":273},[3394],{"type":64,"value":366},{"type":58,"tag":86,"props":3396,"children":3397},{"style":99},[3398],{"type":64,"value":158},{"type":58,"tag":86,"props":3400,"children":3401},{"class":88,"line":1393},[3402,3406,3410,3415,3419],{"type":58,"tag":86,"props":3403,"children":3404},{"style":105},[3405],{"type":64,"value":3093},{"type":58,"tag":86,"props":3407,"children":3408},{"style":99},[3409],{"type":64,"value":780},{"type":58,"tag":86,"props":3411,"children":3412},{"style":238},[3413],{"type":64,"value":3414},"complete",{"type":58,"tag":86,"props":3416,"children":3417},{"style":273},[3418],{"type":64,"value":300},{"type":58,"tag":86,"props":3420,"children":3421},{"style":99},[3422],{"type":64,"value":158},{"type":58,"tag":86,"props":3424,"children":3425},{"class":88,"line":1409},[3426],{"type":58,"tag":86,"props":3427,"children":3428},{"style":99},[3429],{"type":64,"value":3125},{"type":58,"tag":86,"props":3431,"children":3432},{"class":88,"line":1421},[3433,3437,3441],{"type":58,"tag":86,"props":3434,"children":3435},{"style":99},[3436],{"type":64,"value":1316},{"type":58,"tag":86,"props":3438,"children":3439},{"style":273},[3440],{"type":64,"value":366},{"type":58,"tag":86,"props":3442,"children":3443},{"style":99},[3444],{"type":64,"value":158},{"type":58,"tag":86,"props":3446,"children":3448},{"class":88,"line":3447},22,[3449,3454,3458],{"type":58,"tag":86,"props":3450,"children":3451},{"style":93},[3452],{"type":64,"value":3453},"      return",{"type":58,"tag":86,"props":3455,"children":3456},{"style":105},[3457],{"type":64,"value":3024},{"type":58,"tag":86,"props":3459,"children":3460},{"style":99},[3461],{"type":64,"value":158},{"type":58,"tag":86,"props":3463,"children":3465},{"class":88,"line":3464},23,[3466,3470,3474],{"type":58,"tag":86,"props":3467,"children":3468},{"style":99},[3469],{"type":64,"value":361},{"type":58,"tag":86,"props":3471,"children":3472},{"style":273},[3473],{"type":64,"value":366},{"type":58,"tag":86,"props":3475,"children":3476},{"style":99},[3477],{"type":64,"value":158},{"type":58,"tag":86,"props":3479,"children":3481},{"class":88,"line":3480},24,[3482],{"type":58,"tag":86,"props":3483,"children":3484},{"style":99},[3485],{"type":64,"value":3486},"  };\n",{"type":58,"tag":86,"props":3488,"children":3490},{"class":88,"line":3489},25,[3491],{"type":58,"tag":86,"props":3492,"children":3493},{"style":99},[3494],{"type":64,"value":3495},"};\n",{"type":58,"tag":67,"props":3497,"children":3499},{"id":3498},"common-mistakes",[3500],{"type":64,"value":3501},"Common Mistakes",{"type":58,"tag":421,"props":3503,"children":3505},{"id":3504},"critical-no-terminating-link-in-the-chain",[3506,3511],{"type":58,"tag":86,"props":3507,"children":3508},{},[3509],{"type":64,"value":3510},"CRITICAL",{"type":64,"value":3512}," No terminating link in the chain",{"type":58,"tag":402,"props":3514,"children":3515},{},[3516],{"type":64,"value":3517},"Wrong:",{"type":58,"tag":74,"props":3519,"children":3521},{"className":76,"code":3520,"language":78,"meta":79,"style":79},"const client = createTRPCClient\u003CAppRouter>({\n  links: [loggerLink()],\n});\n",[3522],{"type":58,"tag":82,"props":3523,"children":3524},{"__ignoreMap":79},[3525,3564,3593],{"type":58,"tag":86,"props":3526,"children":3527},{"class":88,"line":89},[3528,3532,3536,3540,3544,3548,3552,3556,3560],{"type":58,"tag":86,"props":3529,"children":3530},{"style":222},[3531],{"type":64,"value":225},{"type":58,"tag":86,"props":3533,"children":3534},{"style":105},[3535],{"type":64,"value":230},{"type":58,"tag":86,"props":3537,"children":3538},{"style":99},[3539],{"type":64,"value":235},{"type":58,"tag":86,"props":3541,"children":3542},{"style":238},[3543],{"type":64,"value":108},{"type":58,"tag":86,"props":3545,"children":3546},{"style":99},[3547],{"type":64,"value":245},{"type":58,"tag":86,"props":3549,"children":3550},{"style":248},[3551],{"type":64,"value":251},{"type":58,"tag":86,"props":3553,"children":3554},{"style":99},[3555],{"type":64,"value":256},{"type":58,"tag":86,"props":3557,"children":3558},{"style":105},[3559],{"type":64,"value":261},{"type":58,"tag":86,"props":3561,"children":3562},{"style":99},[3563],{"type":64,"value":266},{"type":58,"tag":86,"props":3565,"children":3566},{"class":88,"line":161},[3567,3571,3575,3579,3584,3589],{"type":58,"tag":86,"props":3568,"children":3569},{"style":273},[3570],{"type":64,"value":276},{"type":58,"tag":86,"props":3572,"children":3573},{"style":99},[3574],{"type":64,"value":281},{"type":58,"tag":86,"props":3576,"children":3577},{"style":105},[3578],{"type":64,"value":732},{"type":58,"tag":86,"props":3580,"children":3581},{"style":238},[3582],{"type":64,"value":3583},"loggerLink",{"type":58,"tag":86,"props":3585,"children":3586},{"style":105},[3587],{"type":64,"value":3588},"()]",{"type":58,"tag":86,"props":3590,"children":3591},{"style":99},[3592],{"type":64,"value":305},{"type":58,"tag":86,"props":3594,"children":3595},{"class":88,"line":208},[3596,3600,3604],{"type":58,"tag":86,"props":3597,"children":3598},{"style":99},[3599],{"type":64,"value":392},{"type":58,"tag":86,"props":3601,"children":3602},{"style":105},[3603],{"type":64,"value":366},{"type":58,"tag":86,"props":3605,"children":3606},{"style":99},[3607],{"type":64,"value":158},{"type":58,"tag":402,"props":3609,"children":3610},{},[3611],{"type":64,"value":3612},"Correct:",{"type":58,"tag":74,"props":3614,"children":3616},{"className":76,"code":3615,"language":78,"meta":79,"style":79},"const client = createTRPCClient\u003CAppRouter>({\n  links: [loggerLink(), httpBatchLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' })],\n});\n",[3617],{"type":58,"tag":82,"props":3618,"children":3619},{"__ignoreMap":79},[3620,3659,3730],{"type":58,"tag":86,"props":3621,"children":3622},{"class":88,"line":89},[3623,3627,3631,3635,3639,3643,3647,3651,3655],{"type":58,"tag":86,"props":3624,"children":3625},{"style":222},[3626],{"type":64,"value":225},{"type":58,"tag":86,"props":3628,"children":3629},{"style":105},[3630],{"type":64,"value":230},{"type":58,"tag":86,"props":3632,"children":3633},{"style":99},[3634],{"type":64,"value":235},{"type":58,"tag":86,"props":3636,"children":3637},{"style":238},[3638],{"type":64,"value":108},{"type":58,"tag":86,"props":3640,"children":3641},{"style":99},[3642],{"type":64,"value":245},{"type":58,"tag":86,"props":3644,"children":3645},{"style":248},[3646],{"type":64,"value":251},{"type":58,"tag":86,"props":3648,"children":3649},{"style":99},[3650],{"type":64,"value":256},{"type":58,"tag":86,"props":3652,"children":3653},{"style":105},[3654],{"type":64,"value":261},{"type":58,"tag":86,"props":3656,"children":3657},{"style":99},[3658],{"type":64,"value":266},{"type":58,"tag":86,"props":3660,"children":3661},{"class":88,"line":161},[3662,3666,3670,3674,3678,3682,3686,3690,3694,3698,3702,3706,3710,3714,3718,3722,3726],{"type":58,"tag":86,"props":3663,"children":3664},{"style":273},[3665],{"type":64,"value":276},{"type":58,"tag":86,"props":3667,"children":3668},{"style":99},[3669],{"type":64,"value":281},{"type":58,"tag":86,"props":3671,"children":3672},{"style":105},[3673],{"type":64,"value":732},{"type":58,"tag":86,"props":3675,"children":3676},{"style":238},[3677],{"type":64,"value":3583},{"type":58,"tag":86,"props":3679,"children":3680},{"style":105},[3681],{"type":64,"value":300},{"type":58,"tag":86,"props":3683,"children":3684},{"style":99},[3685],{"type":64,"value":113},{"type":58,"tag":86,"props":3687,"children":3688},{"style":238},[3689],{"type":64,"value":118},{"type":58,"tag":86,"props":3691,"children":3692},{"style":105},[3693],{"type":64,"value":261},{"type":58,"tag":86,"props":3695,"children":3696},{"style":99},[3697],{"type":64,"value":1733},{"type":58,"tag":86,"props":3699,"children":3700},{"style":273},[3701],{"type":64,"value":1738},{"type":58,"tag":86,"props":3703,"children":3704},{"style":99},[3705],{"type":64,"value":281},{"type":58,"tag":86,"props":3707,"children":3708},{"style":99},[3709],{"type":64,"value":142},{"type":58,"tag":86,"props":3711,"children":3712},{"style":145},[3713],{"type":64,"value":344},{"type":58,"tag":86,"props":3715,"children":3716},{"style":99},[3717],{"type":64,"value":153},{"type":58,"tag":86,"props":3719,"children":3720},{"style":99},[3721],{"type":64,"value":132},{"type":58,"tag":86,"props":3723,"children":3724},{"style":105},[3725],{"type":64,"value":2679},{"type":58,"tag":86,"props":3727,"children":3728},{"style":99},[3729],{"type":64,"value":305},{"type":58,"tag":86,"props":3731,"children":3732},{"class":88,"line":208},[3733,3737,3741],{"type":58,"tag":86,"props":3734,"children":3735},{"style":99},[3736],{"type":64,"value":392},{"type":58,"tag":86,"props":3738,"children":3739},{"style":105},[3740],{"type":64,"value":366},{"type":58,"tag":86,"props":3742,"children":3743},{"style":99},[3744],{"type":64,"value":158},{"type":58,"tag":402,"props":3746,"children":3747},{},[3748],{"type":64,"value":3749},"The link chain must end with a terminating link. Without one, tRPC throws \"No more links to execute - did you forget to add an ending link?\"",{"type":58,"tag":402,"props":3751,"children":3752},{},[3753],{"type":64,"value":3754},"Source: packages\u002Fclient\u002Fsrc\u002Flinks\u002Finternals\u002FcreateChain.ts",{"type":58,"tag":421,"props":3756,"children":3758},{"id":3757},"critical-sending-subscriptions-through-httplink-or-httpbatchlink",[3759,3763],{"type":58,"tag":86,"props":3760,"children":3761},{},[3762],{"type":64,"value":3510},{"type":64,"value":3764}," Sending subscriptions through httpLink or httpBatchLink",{"type":58,"tag":402,"props":3766,"children":3767},{},[3768],{"type":64,"value":3517},{"type":58,"tag":74,"props":3770,"children":3772},{"className":76,"code":3771,"language":78,"meta":79,"style":79},"const client = createTRPCClient\u003CAppRouter>({\n  links: [httpBatchLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' })],\n});\nawait client.onMessage.subscribe({});\n",[3773],{"type":58,"tag":82,"props":3774,"children":3775},{"__ignoreMap":79},[3776,3815,3875,3890],{"type":58,"tag":86,"props":3777,"children":3778},{"class":88,"line":89},[3779,3783,3787,3791,3795,3799,3803,3807,3811],{"type":58,"tag":86,"props":3780,"children":3781},{"style":222},[3782],{"type":64,"value":225},{"type":58,"tag":86,"props":3784,"children":3785},{"style":105},[3786],{"type":64,"value":230},{"type":58,"tag":86,"props":3788,"children":3789},{"style":99},[3790],{"type":64,"value":235},{"type":58,"tag":86,"props":3792,"children":3793},{"style":238},[3794],{"type":64,"value":108},{"type":58,"tag":86,"props":3796,"children":3797},{"style":99},[3798],{"type":64,"value":245},{"type":58,"tag":86,"props":3800,"children":3801},{"style":248},[3802],{"type":64,"value":251},{"type":58,"tag":86,"props":3804,"children":3805},{"style":99},[3806],{"type":64,"value":256},{"type":58,"tag":86,"props":3808,"children":3809},{"style":105},[3810],{"type":64,"value":261},{"type":58,"tag":86,"props":3812,"children":3813},{"style":99},[3814],{"type":64,"value":266},{"type":58,"tag":86,"props":3816,"children":3817},{"class":88,"line":161},[3818,3822,3826,3830,3835,3839,3843,3847,3851,3855,3859,3863,3867,3871],{"type":58,"tag":86,"props":3819,"children":3820},{"style":273},[3821],{"type":64,"value":276},{"type":58,"tag":86,"props":3823,"children":3824},{"style":99},[3825],{"type":64,"value":281},{"type":58,"tag":86,"props":3827,"children":3828},{"style":105},[3829],{"type":64,"value":732},{"type":58,"tag":86,"props":3831,"children":3832},{"style":238},[3833],{"type":64,"value":3834},"httpBatchLink",{"type":58,"tag":86,"props":3836,"children":3837},{"style":105},[3838],{"type":64,"value":261},{"type":58,"tag":86,"props":3840,"children":3841},{"style":99},[3842],{"type":64,"value":1733},{"type":58,"tag":86,"props":3844,"children":3845},{"style":273},[3846],{"type":64,"value":1738},{"type":58,"tag":86,"props":3848,"children":3849},{"style":99},[3850],{"type":64,"value":281},{"type":58,"tag":86,"props":3852,"children":3853},{"style":99},[3854],{"type":64,"value":142},{"type":58,"tag":86,"props":3856,"children":3857},{"style":145},[3858],{"type":64,"value":344},{"type":58,"tag":86,"props":3860,"children":3861},{"style":99},[3862],{"type":64,"value":153},{"type":58,"tag":86,"props":3864,"children":3865},{"style":99},[3866],{"type":64,"value":132},{"type":58,"tag":86,"props":3868,"children":3869},{"style":105},[3870],{"type":64,"value":2679},{"type":58,"tag":86,"props":3872,"children":3873},{"style":99},[3874],{"type":64,"value":305},{"type":58,"tag":86,"props":3876,"children":3877},{"class":88,"line":208},[3878,3882,3886],{"type":58,"tag":86,"props":3879,"children":3880},{"style":99},[3881],{"type":64,"value":392},{"type":58,"tag":86,"props":3883,"children":3884},{"style":105},[3885],{"type":64,"value":366},{"type":58,"tag":86,"props":3887,"children":3888},{"style":99},[3889],{"type":64,"value":158},{"type":58,"tag":86,"props":3891,"children":3892},{"class":88,"line":218},[3893,3898,3902,3906,3911,3915,3919,3923,3928,3932],{"type":58,"tag":86,"props":3894,"children":3895},{"style":93},[3896],{"type":64,"value":3897},"await",{"type":58,"tag":86,"props":3899,"children":3900},{"style":105},[3901],{"type":64,"value":1894},{"type":58,"tag":86,"props":3903,"children":3904},{"style":99},[3905],{"type":64,"value":780},{"type":58,"tag":86,"props":3907,"children":3908},{"style":105},[3909],{"type":64,"value":3910},"onMessage",{"type":58,"tag":86,"props":3912,"children":3913},{"style":99},[3914],{"type":64,"value":780},{"type":58,"tag":86,"props":3916,"children":3917},{"style":238},[3918],{"type":64,"value":3053},{"type":58,"tag":86,"props":3920,"children":3921},{"style":105},[3922],{"type":64,"value":261},{"type":58,"tag":86,"props":3924,"children":3925},{"style":99},[3926],{"type":64,"value":3927},"{}",{"type":58,"tag":86,"props":3929,"children":3930},{"style":105},[3931],{"type":64,"value":366},{"type":58,"tag":86,"props":3933,"children":3934},{"style":99},[3935],{"type":64,"value":158},{"type":58,"tag":402,"props":3937,"children":3938},{},[3939],{"type":64,"value":3612},{"type":58,"tag":74,"props":3941,"children":3943},{"className":76,"code":3942,"language":78,"meta":79,"style":79},"const client = createTRPCClient\u003CAppRouter>({\n  links: [\n    splitLink({\n      condition: (op) => op.type === 'subscription',\n      true: httpSubscriptionLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' }),\n      false: httpBatchLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' }),\n    }),\n  ],\n});\n",[3944],{"type":58,"tag":82,"props":3945,"children":3946},{"__ignoreMap":79},[3947,3986,4001,4016,4075,4130,4185,4200,4211],{"type":58,"tag":86,"props":3948,"children":3949},{"class":88,"line":89},[3950,3954,3958,3962,3966,3970,3974,3978,3982],{"type":58,"tag":86,"props":3951,"children":3952},{"style":222},[3953],{"type":64,"value":225},{"type":58,"tag":86,"props":3955,"children":3956},{"style":105},[3957],{"type":64,"value":230},{"type":58,"tag":86,"props":3959,"children":3960},{"style":99},[3961],{"type":64,"value":235},{"type":58,"tag":86,"props":3963,"children":3964},{"style":238},[3965],{"type":64,"value":108},{"type":58,"tag":86,"props":3967,"children":3968},{"style":99},[3969],{"type":64,"value":245},{"type":58,"tag":86,"props":3971,"children":3972},{"style":248},[3973],{"type":64,"value":251},{"type":58,"tag":86,"props":3975,"children":3976},{"style":99},[3977],{"type":64,"value":256},{"type":58,"tag":86,"props":3979,"children":3980},{"style":105},[3981],{"type":64,"value":261},{"type":58,"tag":86,"props":3983,"children":3984},{"style":99},[3985],{"type":64,"value":266},{"type":58,"tag":86,"props":3987,"children":3988},{"class":88,"line":161},[3989,3993,3997],{"type":58,"tag":86,"props":3990,"children":3991},{"style":273},[3992],{"type":64,"value":276},{"type":58,"tag":86,"props":3994,"children":3995},{"style":99},[3996],{"type":64,"value":281},{"type":58,"tag":86,"props":3998,"children":3999},{"style":105},[4000],{"type":64,"value":286},{"type":58,"tag":86,"props":4002,"children":4003},{"class":88,"line":208},[4004,4008,4012],{"type":58,"tag":86,"props":4005,"children":4006},{"style":238},[4007],{"type":64,"value":1179},{"type":58,"tag":86,"props":4009,"children":4010},{"style":105},[4011],{"type":64,"value":261},{"type":58,"tag":86,"props":4013,"children":4014},{"style":99},[4015],{"type":64,"value":266},{"type":58,"tag":86,"props":4017,"children":4018},{"class":88,"line":218},[4019,4023,4027,4031,4035,4039,4043,4047,4051,4055,4059,4063,4067,4071],{"type":58,"tag":86,"props":4020,"children":4021},{"style":238},[4022],{"type":64,"value":1195},{"type":58,"tag":86,"props":4024,"children":4025},{"style":99},[4026],{"type":64,"value":281},{"type":58,"tag":86,"props":4028,"children":4029},{"style":99},[4030],{"type":64,"value":1204},{"type":58,"tag":86,"props":4032,"children":4033},{"style":1207},[4034],{"type":64,"value":1210},{"type":58,"tag":86,"props":4036,"children":4037},{"style":99},[4038],{"type":64,"value":366},{"type":58,"tag":86,"props":4040,"children":4041},{"style":222},[4042],{"type":64,"value":1219},{"type":58,"tag":86,"props":4044,"children":4045},{"style":105},[4046],{"type":64,"value":1224},{"type":58,"tag":86,"props":4048,"children":4049},{"style":99},[4050],{"type":64,"value":780},{"type":58,"tag":86,"props":4052,"children":4053},{"style":105},[4054],{"type":64,"value":1233},{"type":58,"tag":86,"props":4056,"children":4057},{"style":99},[4058],{"type":64,"value":1238},{"type":58,"tag":86,"props":4060,"children":4061},{"style":99},[4062],{"type":64,"value":142},{"type":58,"tag":86,"props":4064,"children":4065},{"style":145},[4066],{"type":64,"value":1247},{"type":58,"tag":86,"props":4068,"children":4069},{"style":99},[4070],{"type":64,"value":153},{"type":58,"tag":86,"props":4072,"children":4073},{"style":99},[4074],{"type":64,"value":305},{"type":58,"tag":86,"props":4076,"children":4077},{"class":88,"line":269},[4078,4082,4086,4090,4094,4098,4102,4106,4110,4114,4118,4122,4126],{"type":58,"tag":86,"props":4079,"children":4080},{"style":273},[4081],{"type":64,"value":1263},{"type":58,"tag":86,"props":4083,"children":4084},{"style":99},[4085],{"type":64,"value":281},{"type":58,"tag":86,"props":4087,"children":4088},{"style":238},[4089],{"type":64,"value":1272},{"type":58,"tag":86,"props":4091,"children":4092},{"style":105},[4093],{"type":64,"value":261},{"type":58,"tag":86,"props":4095,"children":4096},{"style":99},[4097],{"type":64,"value":1733},{"type":58,"tag":86,"props":4099,"children":4100},{"style":273},[4101],{"type":64,"value":1738},{"type":58,"tag":86,"props":4103,"children":4104},{"style":99},[4105],{"type":64,"value":281},{"type":58,"tag":86,"props":4107,"children":4108},{"style":99},[4109],{"type":64,"value":142},{"type":58,"tag":86,"props":4111,"children":4112},{"style":145},[4113],{"type":64,"value":344},{"type":58,"tag":86,"props":4115,"children":4116},{"style":99},[4117],{"type":64,"value":153},{"type":58,"tag":86,"props":4119,"children":4120},{"style":99},[4121],{"type":64,"value":132},{"type":58,"tag":86,"props":4123,"children":4124},{"style":105},[4125],{"type":64,"value":366},{"type":58,"tag":86,"props":4127,"children":4128},{"style":99},[4129],{"type":64,"value":305},{"type":58,"tag":86,"props":4131,"children":4132},{"class":88,"line":289},[4133,4137,4141,4145,4149,4153,4157,4161,4165,4169,4173,4177,4181],{"type":58,"tag":86,"props":4134,"children":4135},{"style":273},[4136],{"type":64,"value":1332},{"type":58,"tag":86,"props":4138,"children":4139},{"style":99},[4140],{"type":64,"value":281},{"type":58,"tag":86,"props":4142,"children":4143},{"style":238},[4144],{"type":64,"value":118},{"type":58,"tag":86,"props":4146,"children":4147},{"style":105},[4148],{"type":64,"value":261},{"type":58,"tag":86,"props":4150,"children":4151},{"style":99},[4152],{"type":64,"value":1733},{"type":58,"tag":86,"props":4154,"children":4155},{"style":273},[4156],{"type":64,"value":1738},{"type":58,"tag":86,"props":4158,"children":4159},{"style":99},[4160],{"type":64,"value":281},{"type":58,"tag":86,"props":4162,"children":4163},{"style":99},[4164],{"type":64,"value":142},{"type":58,"tag":86,"props":4166,"children":4167},{"style":145},[4168],{"type":64,"value":344},{"type":58,"tag":86,"props":4170,"children":4171},{"style":99},[4172],{"type":64,"value":153},{"type":58,"tag":86,"props":4174,"children":4175},{"style":99},[4176],{"type":64,"value":132},{"type":58,"tag":86,"props":4178,"children":4179},{"style":105},[4180],{"type":64,"value":366},{"type":58,"tag":86,"props":4182,"children":4183},{"style":99},[4184],{"type":64,"value":305},{"type":58,"tag":86,"props":4186,"children":4187},{"class":88,"line":308},[4188,4192,4196],{"type":58,"tag":86,"props":4189,"children":4190},{"style":99},[4191],{"type":64,"value":361},{"type":58,"tag":86,"props":4193,"children":4194},{"style":105},[4195],{"type":64,"value":366},{"type":58,"tag":86,"props":4197,"children":4198},{"style":99},[4199],{"type":64,"value":305},{"type":58,"tag":86,"props":4201,"children":4202},{"class":88,"line":325},[4203,4207],{"type":58,"tag":86,"props":4204,"children":4205},{"style":105},[4206],{"type":64,"value":379},{"type":58,"tag":86,"props":4208,"children":4209},{"style":99},[4210],{"type":64,"value":305},{"type":58,"tag":86,"props":4212,"children":4213},{"class":88,"line":355},[4214,4218,4222],{"type":58,"tag":86,"props":4215,"children":4216},{"style":99},[4217],{"type":64,"value":392},{"type":58,"tag":86,"props":4219,"children":4220},{"style":105},[4221],{"type":64,"value":366},{"type":58,"tag":86,"props":4223,"children":4224},{"style":99},[4225],{"type":64,"value":158},{"type":58,"tag":402,"props":4227,"children":4228},{},[4229],{"type":64,"value":4230},"httpLink and httpBatchLink throw on subscription operations. Subscriptions must use httpSubscriptionLink or wsLink, routed via splitLink.",{"type":58,"tag":402,"props":4232,"children":4233},{},[4234],{"type":64,"value":4235},"Source: packages\u002Fclient\u002Fsrc\u002Flinks\u002FhttpLink.ts",{"type":58,"tag":421,"props":4237,"children":4239},{"id":4238},"high-httpbatchlink-and-httpbatchstreamlink-headers-callback-receives-oplist",[4240,4245],{"type":58,"tag":86,"props":4241,"children":4242},{},[4243],{"type":64,"value":4244},"HIGH",{"type":64,"value":4246}," httpBatchLink and httpBatchStreamLink headers callback receives { opList }",{"type":58,"tag":402,"props":4248,"children":4249},{},[4250,4255,4257,4263,4265,4271,4273,4279,4281,4287,4289,4295,4297,4303],{"type":58,"tag":82,"props":4251,"children":4253},{"className":4252},[],[4254],{"type":64,"value":3834},{"type":64,"value":4256}," and ",{"type":58,"tag":82,"props":4258,"children":4260},{"className":4259},[],[4261],{"type":64,"value":4262},"httpBatchStreamLink",{"type":64,"value":4264}," headers callbacks receive ",{"type":58,"tag":82,"props":4266,"children":4268},{"className":4267},[],[4269],{"type":64,"value":4270},"{ opList }",{"type":64,"value":4272}," (a ",{"type":58,"tag":82,"props":4274,"children":4276},{"className":4275},[],[4277],{"type":64,"value":4278},"NonEmptyArray\u003COperation>",{"type":64,"value":4280},"), not ",{"type":58,"tag":82,"props":4282,"children":4284},{"className":4283},[],[4285],{"type":64,"value":4286},"{ op }",{"type":64,"value":4288}," like ",{"type":58,"tag":82,"props":4290,"children":4292},{"className":4291},[],[4293],{"type":64,"value":4294},"httpLink",{"type":64,"value":4296},". Access per-operation context via ",{"type":58,"tag":82,"props":4298,"children":4300},{"className":4299},[],[4301],{"type":64,"value":4302},"opList[0]?.context",{"type":64,"value":281},{"type":58,"tag":74,"props":4305,"children":4307},{"className":76,"code":4306,"language":78,"meta":79,"style":79},"httpBatchLink({\n  url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n  headers({ opList }) {\n    return { authorization: opList[0]?.context.token };\n  },\n});\n",[4308],{"type":58,"tag":82,"props":4309,"children":4310},{"__ignoreMap":79},[4311,4326,4353,4379,4440,4448],{"type":58,"tag":86,"props":4312,"children":4313},{"class":88,"line":89},[4314,4318,4322],{"type":58,"tag":86,"props":4315,"children":4316},{"style":238},[4317],{"type":64,"value":3834},{"type":58,"tag":86,"props":4319,"children":4320},{"style":105},[4321],{"type":64,"value":261},{"type":58,"tag":86,"props":4323,"children":4324},{"style":99},[4325],{"type":64,"value":266},{"type":58,"tag":86,"props":4327,"children":4328},{"class":88,"line":161},[4329,4333,4337,4341,4345,4349],{"type":58,"tag":86,"props":4330,"children":4331},{"style":273},[4332],{"type":64,"value":2536},{"type":58,"tag":86,"props":4334,"children":4335},{"style":99},[4336],{"type":64,"value":281},{"type":58,"tag":86,"props":4338,"children":4339},{"style":99},[4340],{"type":64,"value":142},{"type":58,"tag":86,"props":4342,"children":4343},{"style":145},[4344],{"type":64,"value":344},{"type":58,"tag":86,"props":4346,"children":4347},{"style":99},[4348],{"type":64,"value":153},{"type":58,"tag":86,"props":4350,"children":4351},{"style":99},[4352],{"type":64,"value":305},{"type":58,"tag":86,"props":4354,"children":4355},{"class":88,"line":208},[4356,4361,4366,4371,4375],{"type":58,"tag":86,"props":4357,"children":4358},{"style":273},[4359],{"type":64,"value":4360},"  headers",{"type":58,"tag":86,"props":4362,"children":4363},{"style":99},[4364],{"type":64,"value":4365},"({",{"type":58,"tag":86,"props":4367,"children":4368},{"style":1207},[4369],{"type":64,"value":4370}," opList",{"type":58,"tag":86,"props":4372,"children":4373},{"style":99},[4374],{"type":64,"value":2928},{"type":58,"tag":86,"props":4376,"children":4377},{"style":99},[4378],{"type":64,"value":992},{"type":58,"tag":86,"props":4380,"children":4381},{"class":88,"line":218},[4382,4386,4390,4395,4399,4403,4408,4413,4417,4422,4426,4430,4435],{"type":58,"tag":86,"props":4383,"children":4384},{"style":93},[4385],{"type":64,"value":2944},{"type":58,"tag":86,"props":4387,"children":4388},{"style":99},[4389],{"type":64,"value":102},{"type":58,"tag":86,"props":4391,"children":4392},{"style":273},[4393],{"type":64,"value":4394}," authorization",{"type":58,"tag":86,"props":4396,"children":4397},{"style":99},[4398],{"type":64,"value":281},{"type":58,"tag":86,"props":4400,"children":4401},{"style":105},[4402],{"type":64,"value":4370},{"type":58,"tag":86,"props":4404,"children":4405},{"style":273},[4406],{"type":64,"value":4407},"[",{"type":58,"tag":86,"props":4409,"children":4410},{"style":641},[4411],{"type":64,"value":4412},"0",{"type":58,"tag":86,"props":4414,"children":4415},{"style":273},[4416],{"type":64,"value":760},{"type":58,"tag":86,"props":4418,"children":4419},{"style":99},[4420],{"type":64,"value":4421},"?.",{"type":58,"tag":86,"props":4423,"children":4424},{"style":105},[4425],{"type":64,"value":1695},{"type":58,"tag":86,"props":4427,"children":4428},{"style":99},[4429],{"type":64,"value":780},{"type":58,"tag":86,"props":4431,"children":4432},{"style":105},[4433],{"type":64,"value":4434},"token",{"type":58,"tag":86,"props":4436,"children":4437},{"style":99},[4438],{"type":64,"value":4439}," };\n",{"type":58,"tag":86,"props":4441,"children":4442},{"class":88,"line":269},[4443],{"type":58,"tag":86,"props":4444,"children":4445},{"style":99},[4446],{"type":64,"value":4447},"  },\n",{"type":58,"tag":86,"props":4449,"children":4450},{"class":88,"line":289},[4451,4455,4459],{"type":58,"tag":86,"props":4452,"children":4453},{"style":99},[4454],{"type":64,"value":392},{"type":58,"tag":86,"props":4456,"children":4457},{"style":105},[4458],{"type":64,"value":366},{"type":58,"tag":86,"props":4460,"children":4461},{"style":99},[4462],{"type":64,"value":158},{"type":58,"tag":402,"props":4464,"children":4465},{},[4466,4471,4473,4478],{"type":58,"tag":82,"props":4467,"children":4469},{"className":4468},[],[4470],{"type":64,"value":3834},{"type":64,"value":4472}," headers callback receives ",{"type":58,"tag":82,"props":4474,"children":4476},{"className":4475},[],[4477],{"type":64,"value":4270},{"type":64,"value":4479}," (an array of operations)",{"type":58,"tag":402,"props":4481,"children":4482},{},[4483],{"type":64,"value":4484},"Source: packages\u002Fclient\u002Fsrc\u002Flinks\u002FhttpBatchLink.ts",{"type":58,"tag":421,"props":4486,"children":4488},{"id":4487},"medium-default-batch-limits-are-infinity",[4489,4494],{"type":58,"tag":86,"props":4490,"children":4491},{},[4492],{"type":64,"value":4493},"MEDIUM",{"type":64,"value":4495}," Default batch limits are Infinity",{"type":58,"tag":402,"props":4497,"children":4498},{},[4499],{"type":64,"value":3517},{"type":58,"tag":74,"props":4501,"children":4503},{"className":76,"code":4502,"language":78,"meta":79,"style":79},"httpBatchLink({ url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc' });\n",[4504],{"type":58,"tag":82,"props":4505,"children":4506},{"__ignoreMap":79},[4507],{"type":58,"tag":86,"props":4508,"children":4509},{"class":88,"line":89},[4510,4514,4518,4522,4526,4530,4534,4538,4542,4546,4550],{"type":58,"tag":86,"props":4511,"children":4512},{"style":238},[4513],{"type":64,"value":3834},{"type":58,"tag":86,"props":4515,"children":4516},{"style":105},[4517],{"type":64,"value":261},{"type":58,"tag":86,"props":4519,"children":4520},{"style":99},[4521],{"type":64,"value":1733},{"type":58,"tag":86,"props":4523,"children":4524},{"style":273},[4525],{"type":64,"value":1738},{"type":58,"tag":86,"props":4527,"children":4528},{"style":99},[4529],{"type":64,"value":281},{"type":58,"tag":86,"props":4531,"children":4532},{"style":99},[4533],{"type":64,"value":142},{"type":58,"tag":86,"props":4535,"children":4536},{"style":145},[4537],{"type":64,"value":344},{"type":58,"tag":86,"props":4539,"children":4540},{"style":99},[4541],{"type":64,"value":153},{"type":58,"tag":86,"props":4543,"children":4544},{"style":99},[4545],{"type":64,"value":132},{"type":58,"tag":86,"props":4547,"children":4548},{"style":105},[4549],{"type":64,"value":366},{"type":58,"tag":86,"props":4551,"children":4552},{"style":99},[4553],{"type":64,"value":158},{"type":58,"tag":402,"props":4555,"children":4556},{},[4557],{"type":64,"value":3612},{"type":58,"tag":74,"props":4559,"children":4561},{"className":76,"code":4560,"language":78,"meta":79,"style":79},"httpBatchLink({\n  url: 'http:\u002F\u002Flocalhost:3000\u002Ftrpc',\n  maxURLLength: 2083,\n  \u002F\u002F should be the same or lower than the server's maxBatchSize\n  maxItems: 10,\n});\n",[4562],{"type":58,"tag":82,"props":4563,"children":4564},{"__ignoreMap":79},[4565,4580,4607,4627,4636,4656],{"type":58,"tag":86,"props":4566,"children":4567},{"class":88,"line":89},[4568,4572,4576],{"type":58,"tag":86,"props":4569,"children":4570},{"style":238},[4571],{"type":64,"value":3834},{"type":58,"tag":86,"props":4573,"children":4574},{"style":105},[4575],{"type":64,"value":261},{"type":58,"tag":86,"props":4577,"children":4578},{"style":99},[4579],{"type":64,"value":266},{"type":58,"tag":86,"props":4581,"children":4582},{"class":88,"line":161},[4583,4587,4591,4595,4599,4603],{"type":58,"tag":86,"props":4584,"children":4585},{"style":273},[4586],{"type":64,"value":2536},{"type":58,"tag":86,"props":4588,"children":4589},{"style":99},[4590],{"type":64,"value":281},{"type":58,"tag":86,"props":4592,"children":4593},{"style":99},[4594],{"type":64,"value":142},{"type":58,"tag":86,"props":4596,"children":4597},{"style":145},[4598],{"type":64,"value":344},{"type":58,"tag":86,"props":4600,"children":4601},{"style":99},[4602],{"type":64,"value":153},{"type":58,"tag":86,"props":4604,"children":4605},{"style":99},[4606],{"type":64,"value":305},{"type":58,"tag":86,"props":4608,"children":4609},{"class":88,"line":208},[4610,4615,4619,4623],{"type":58,"tag":86,"props":4611,"children":4612},{"style":273},[4613],{"type":64,"value":4614},"  maxURLLength",{"type":58,"tag":86,"props":4616,"children":4617},{"style":99},[4618],{"type":64,"value":281},{"type":58,"tag":86,"props":4620,"children":4621},{"style":641},[4622],{"type":64,"value":644},{"type":58,"tag":86,"props":4624,"children":4625},{"style":99},[4626],{"type":64,"value":305},{"type":58,"tag":86,"props":4628,"children":4629},{"class":88,"line":218},[4630],{"type":58,"tag":86,"props":4631,"children":4633},{"style":4632},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[4634],{"type":64,"value":4635},"  \u002F\u002F should be the same or lower than the server's maxBatchSize\n",{"type":58,"tag":86,"props":4637,"children":4638},{"class":88,"line":269},[4639,4644,4648,4652],{"type":58,"tag":86,"props":4640,"children":4641},{"style":273},[4642],{"type":64,"value":4643},"  maxItems",{"type":58,"tag":86,"props":4645,"children":4646},{"style":99},[4647],{"type":64,"value":281},{"type":58,"tag":86,"props":4649,"children":4650},{"style":641},[4651],{"type":64,"value":665},{"type":58,"tag":86,"props":4653,"children":4654},{"style":99},[4655],{"type":64,"value":305},{"type":58,"tag":86,"props":4657,"children":4658},{"class":88,"line":289},[4659,4663,4667],{"type":58,"tag":86,"props":4660,"children":4661},{"style":99},[4662],{"type":64,"value":392},{"type":58,"tag":86,"props":4664,"children":4665},{"style":105},[4666],{"type":64,"value":366},{"type":58,"tag":86,"props":4668,"children":4669},{"style":99},[4670],{"type":64,"value":158},{"type":58,"tag":402,"props":4672,"children":4673},{},[4674,4676,4681,4682,4688,4690,4696,4698,4704,4706,4711,4713,4719],{"type":64,"value":4675},"Both ",{"type":58,"tag":82,"props":4677,"children":4679},{"className":4678},[],[4680],{"type":64,"value":965},{"type":64,"value":4256},{"type":58,"tag":82,"props":4683,"children":4685},{"className":4684},[],[4686],{"type":64,"value":4687},"maxItems",{"type":64,"value":4689}," default to ",{"type":58,"tag":82,"props":4691,"children":4693},{"className":4692},[],[4694],{"type":64,"value":4695},"Infinity",{"type":64,"value":4697},", which can cause 413\u002F414 HTTP errors on servers or CDNs with URL length limits. When the server sets ",{"type":58,"tag":82,"props":4699,"children":4701},{"className":4700},[],[4702],{"type":64,"value":4703},"maxBatchSize",{"type":64,"value":4705},", set ",{"type":58,"tag":82,"props":4707,"children":4709},{"className":4708},[],[4710],{"type":64,"value":4687},{"type":64,"value":4712}," to the same or lower value so the client auto-splits batches instead of triggering a ",{"type":58,"tag":82,"props":4714,"children":4716},{"className":4715},[],[4717],{"type":64,"value":4718},"400 Bad Request",{"type":64,"value":780},{"type":58,"tag":402,"props":4721,"children":4722},{},[4723],{"type":64,"value":4484},{"type":58,"tag":421,"props":4725,"children":4727},{"id":4726},"high-httpbatchstreamlink-data-loss-on-stream-completion",[4728,4732],{"type":58,"tag":86,"props":4729,"children":4730},{},[4731],{"type":64,"value":4244},{"type":64,"value":4733}," httpBatchStreamLink data loss on stream completion",{"type":58,"tag":402,"props":4735,"children":4736},{},[4737,4739,4744],{"type":64,"value":4738},"There is a known race condition where buffered chunks can be lost on normal stream completion. Long streaming responses (e.g., LLM output) may be truncated. If you experience truncated data, switch to ",{"type":58,"tag":82,"props":4740,"children":4742},{"className":4741},[],[4743],{"type":64,"value":3834},{"type":64,"value":4745}," for those operations.",{"type":58,"tag":402,"props":4747,"children":4748},{},[4749,4751],{"type":64,"value":4750},"Source: ",{"type":58,"tag":4752,"props":4753,"children":4757},"a",{"href":4754,"rel":4755},"https:\u002F\u002Fgithub.com\u002Ftrpc\u002Ftrpc\u002Fissues\u002F7209",[4756],"nofollow",[4758],{"type":64,"value":4754},{"type":58,"tag":67,"props":4760,"children":4762},{"id":4761},"references",[4763],{"type":64,"value":4764},"References",{"type":58,"tag":4766,"props":4767,"children":4768},"ul",{},[4769],{"type":58,"tag":4770,"props":4771,"children":4772},"li",{},[4773],{"type":58,"tag":4752,"props":4774,"children":4776},{"href":4775},"references\u002Flink-options.md",[4777],{"type":64,"value":4778},"Link options reference",{"type":58,"tag":67,"props":4780,"children":4782},{"id":4781},"see-also",[4783],{"type":64,"value":4784},"See Also",{"type":58,"tag":4766,"props":4786,"children":4787},{},[4788,4798,4809,4820,4831],{"type":58,"tag":4770,"props":4789,"children":4790},{},[4791,4796],{"type":58,"tag":82,"props":4792,"children":4794},{"className":4793},[],[4795],{"type":64,"value":42},{"type":64,"value":4797}," -- create the tRPC client and configure links",{"type":58,"tag":4770,"props":4799,"children":4800},{},[4801,4807],{"type":58,"tag":82,"props":4802,"children":4804},{"className":4803},[],[4805],{"type":64,"value":4806},"superjson",{"type":64,"value":4808}," -- add transformer to links for Date\u002FMap\u002FSet support",{"type":58,"tag":4770,"props":4810,"children":4811},{},[4812,4818],{"type":58,"tag":82,"props":4813,"children":4815},{"className":4814},[],[4816],{"type":64,"value":4817},"subscriptions",{"type":64,"value":4819}," -- set up SSE or WebSocket real-time streams",{"type":58,"tag":4770,"props":4821,"children":4822},{},[4823,4829],{"type":58,"tag":82,"props":4824,"children":4826},{"className":4825},[],[4827],{"type":64,"value":4828},"non-json-content-types",{"type":64,"value":4830}," -- route FormData\u002Fbinary through splitLink + httpLink",{"type":58,"tag":4770,"props":4832,"children":4833},{},[4834,4840],{"type":58,"tag":82,"props":4835,"children":4837},{"className":4836},[],[4838],{"type":64,"value":4839},"service-oriented-architecture",{"type":64,"value":4841}," -- build custom routing links for multi-service backends",{"type":58,"tag":4843,"props":4844,"children":4845},"style",{},[4846],{"type":64,"value":4847},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":4849,"total":3480},[4850,4865,4878,4891,4911,4924,4938,4952,4961,4975,4981,4993],{"slug":4851,"name":4851,"fn":4852,"description":4853,"org":4854,"tags":4855,"stars":20,"repoUrl":21,"updatedAt":4864},"adapter-aws-lambda","deploy tRPC APIs on AWS Lambda","Deploy tRPC on AWS Lambda with awsLambdaRequestHandler() from @trpc\u002Fserver\u002Fadapters\u002Faws-lambda for API Gateway v1 (REST, APIGatewayProxyEvent) and v2 (HTTP, APIGatewayProxyEventV2), and Lambda Function URLs. Enable response streaming with awsLambdaStreamingRequestHandler() wrapped in awslambda.streamifyResponse(). CreateAWSLambdaContextOptions provides event and context for context creation.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4856,4857,4860,4863],{"name":15,"slug":16,"type":13},{"name":4858,"slug":4859,"type":13},"AWS","aws",{"name":4861,"slug":4862,"type":13},"Backend","backend",{"name":9,"slug":8,"type":13},"2026-07-18T05:47:05.451869",{"slug":4866,"name":4866,"fn":4867,"description":4868,"org":4869,"tags":4870,"stars":20,"repoUrl":21,"updatedAt":4877},"adapter-express","mount tRPC as Express middleware","Mount tRPC as Express middleware with createExpressMiddleware() from @trpc\u002Fserver\u002Fadapters\u002Fexpress. Access Express req\u002Fres in createContext via CreateExpressContextOptions. Mount at a path prefix like app.use('\u002Ftrpc', ...). Avoid global express.json() conflicting with tRPC body parsing for FormData.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4871,4872,4873,4876],{"name":15,"slug":16,"type":13},{"name":4861,"slug":4862,"type":13},{"name":4874,"slug":4875,"type":13},"Express","express",{"name":9,"slug":8,"type":13},"2026-07-18T05:46:53.274248",{"slug":4879,"name":4879,"fn":4880,"description":4881,"org":4882,"tags":4883,"stars":20,"repoUrl":21,"updatedAt":4890},"adapter-fastify","mount tRPC as a Fastify plugin","Mount tRPC as a Fastify plugin with fastifyTRPCPlugin from @trpc\u002Fserver\u002Fadapters\u002Ffastify. Configure prefix, trpcOptions (router, createContext, onError). Enable WebSocket subscriptions with useWSS and @fastify\u002Fwebsocket. Set routerOptions.maxParamLength for batch requests. Requires Fastify v5+. FastifyTRPCPluginOptions for type-safe onError. CreateFastifyContextOptions provides req, res.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4884,4885,4886,4889],{"name":15,"slug":16,"type":13},{"name":4861,"slug":4862,"type":13},{"name":4887,"slug":4888,"type":13},"Fastify","fastify",{"name":9,"slug":8,"type":13},"2026-07-18T05:46:53.746621",{"slug":4892,"name":4892,"fn":4893,"description":4894,"org":4895,"tags":4896,"stars":20,"repoUrl":21,"updatedAt":4910},"adapter-fetch","deploy tRPC on edge runtimes","Deploy tRPC on WinterCG-compliant edge runtimes with fetchRequestHandler() from @trpc\u002Fserver\u002Fadapters\u002Ffetch. Supports Cloudflare Workers, Deno Deploy, Vercel Edge Runtime, Astro, Remix, SolidStart. FetchCreateContextFnOptions provides req (Request) and resHeaders (Headers) for context creation. The endpoint option must match the URL path prefix where the handler is mounted.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4897,4900,4903,4906,4907],{"name":4898,"slug":4899,"type":13},"Cloudflare","cloudflare",{"name":4901,"slug":4902,"type":13},"Deployment","deployment",{"name":4904,"slug":4905,"type":13},"Edge","edge",{"name":9,"slug":8,"type":13},{"name":4908,"slug":4909,"type":13},"Vercel","vercel","2026-07-18T05:46:50.548228",{"slug":4912,"name":4912,"fn":4913,"description":4914,"org":4915,"tags":4916,"stars":20,"repoUrl":21,"updatedAt":4923},"adapter-standalone","mount tRPC on Node.js servers","Mount tRPC on Node.js built-in HTTP server with createHTTPServer() from @trpc\u002Fserver\u002Fadapters\u002Fstandalone, createHTTPHandler() for custom http.createServer, createHTTP2Handler() for HTTP\u002F2 with TLS. Configure basePath to slice URL prefix, CORS via the cors npm package passed as middleware option. CreateHTTPContextOptions provides req and res for context creation.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4917,4918,4919,4922],{"name":15,"slug":16,"type":13},{"name":4861,"slug":4862,"type":13},{"name":4920,"slug":4921,"type":13},"Node.js","node-js",{"name":9,"slug":8,"type":13},"2026-07-18T05:46:58.093869",{"slug":4925,"name":4925,"fn":4926,"description":4927,"org":4928,"tags":4929,"stars":20,"repoUrl":21,"updatedAt":4937},"auth","implement authentication in tRPC applications","Implement JWT\u002Fcookie authentication and authorization in tRPC using createContext for user extraction, t.middleware with opts.next({ ctx }) for context narrowing to non-null user, protectedProcedure base pattern, client-side Authorization headers via httpBatchLink headers(), WebSocket connectionParams, and SSE auth via cookies or EventSource polyfill custom headers.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4930,4932,4935,4936],{"name":4931,"slug":4925,"type":13},"Auth",{"name":4933,"slug":4934,"type":13},"Authentication","authentication",{"name":4861,"slug":4862,"type":13},{"name":9,"slug":8,"type":13},"2026-07-18T05:46:45.347628",{"slug":4939,"name":4939,"fn":4940,"description":4941,"org":4942,"tags":4943,"stars":20,"repoUrl":21,"updatedAt":4951},"caching","configure HTTP caching for tRPC queries","Set HTTP cache headers on tRPC query responses via responseMeta callback for CDN and browser caching. Configure Cache-Control, s-maxage, stale-while-revalidate. Handle caching with batching and authenticated requests. Avoid caching mutations, errors, and authenticated responses.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4944,4945,4947,4950],{"name":4861,"slug":4862,"type":13},{"name":4946,"slug":4939,"type":13},"Caching",{"name":4948,"slug":4949,"type":13},"Performance","performance",{"name":9,"slug":8,"type":13},"2026-07-18T05:46:45.86443",{"slug":42,"name":42,"fn":4953,"description":4954,"org":4955,"tags":4956,"stars":20,"repoUrl":21,"updatedAt":4960},"set up vanilla tRPC clients","Create a vanilla tRPC client with createTRPCClient\u003CAppRouter>(), configure link chain with httpBatchLink\u002FhttpLink, dynamic headers for auth, transformer on links (not client constructor). Infer types with inferRouterInputs and inferRouterOutputs. AbortController signal support. TRPCClientError typing.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4957,4958,4959],{"name":15,"slug":16,"type":13},{"name":18,"slug":19,"type":13},{"name":9,"slug":8,"type":13},"2026-07-18T05:48:11.437946",{"slug":4962,"name":4962,"fn":4963,"description":4964,"org":4965,"tags":4966,"stars":20,"repoUrl":21,"updatedAt":4974},"error-handling","implement typed error handling in tRPC","Throw typed errors with TRPCError and error codes (NOT_FOUND, UNAUTHORIZED, BAD_REQUEST, INTERNAL_SERVER_ERROR), configure errorFormatter for client-side Zod error display, handle errors globally with onError callback, map tRPC errors to HTTP status codes with getHTTPStatusCodeFromError().\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4967,4968,4971,4972],{"name":4861,"slug":4862,"type":13},{"name":4969,"slug":4970,"type":13},"Debugging","debugging",{"name":9,"slug":8,"type":13},{"name":4973,"slug":31,"type":13},"TypeScript","2026-07-18T05:46:52.798151",{"slug":4,"name":4,"fn":5,"description":6,"org":4976,"tags":4977,"stars":20,"repoUrl":21,"updatedAt":22},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4978,4979,4980],{"name":15,"slug":16,"type":13},{"name":18,"slug":19,"type":13},{"name":9,"slug":8,"type":13},{"slug":4982,"name":4982,"fn":4983,"description":4984,"org":4985,"tags":4986,"stars":20,"repoUrl":21,"updatedAt":4992},"middlewares","compose middleware for tRPC procedures","Create and compose tRPC middleware with t.procedure.use(), extend context via opts.next({ ctx }), build reusable middleware with .concat() and .unstable_pipe(), define base procedures like publicProcedure and authedProcedure. Access raw input with getRawInput(). Logging, timing, OTEL tracing patterns.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4987,4988,4991],{"name":4861,"slug":4862,"type":13},{"name":4989,"slug":4990,"type":13},"Middleware","middleware",{"name":9,"slug":8,"type":13},"2026-07-18T05:46:49.132255",{"slug":4994,"name":4994,"fn":4995,"description":4996,"org":4997,"tags":4998,"stars":20,"repoUrl":21,"updatedAt":5006},"nextjs-app-router","implement tRPC in Next.js App Router","Full end-to-end tRPC setup for Next.js App Router. Covers route handler with fetchRequestHandler (GET + POST exports), TRPCProvider with QueryClientProvider, createTRPCOptionsProxy for RSC prefetching, HydrateClient\u002FHydrationBoundary for hydration, useSuspenseQuery for Suspense, and server-side callers.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[4999,5000,5001,5004,5005],{"name":4861,"slug":4862,"type":13},{"name":18,"slug":19,"type":13},{"name":5002,"slug":5003,"type":13},"Next.js","next-js",{"name":9,"slug":8,"type":13},{"name":4973,"slug":31,"type":13},"2026-07-18T05:47:10.468453",{"items":5008,"total":3480},[5009,5016,5023,5030,5038,5045,5052],{"slug":4851,"name":4851,"fn":4852,"description":4853,"org":5010,"tags":5011,"stars":20,"repoUrl":21,"updatedAt":4864},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5012,5013,5014,5015],{"name":15,"slug":16,"type":13},{"name":4858,"slug":4859,"type":13},{"name":4861,"slug":4862,"type":13},{"name":9,"slug":8,"type":13},{"slug":4866,"name":4866,"fn":4867,"description":4868,"org":5017,"tags":5018,"stars":20,"repoUrl":21,"updatedAt":4877},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5019,5020,5021,5022],{"name":15,"slug":16,"type":13},{"name":4861,"slug":4862,"type":13},{"name":4874,"slug":4875,"type":13},{"name":9,"slug":8,"type":13},{"slug":4879,"name":4879,"fn":4880,"description":4881,"org":5024,"tags":5025,"stars":20,"repoUrl":21,"updatedAt":4890},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5026,5027,5028,5029],{"name":15,"slug":16,"type":13},{"name":4861,"slug":4862,"type":13},{"name":4887,"slug":4888,"type":13},{"name":9,"slug":8,"type":13},{"slug":4892,"name":4892,"fn":4893,"description":4894,"org":5031,"tags":5032,"stars":20,"repoUrl":21,"updatedAt":4910},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5033,5034,5035,5036,5037],{"name":4898,"slug":4899,"type":13},{"name":4901,"slug":4902,"type":13},{"name":4904,"slug":4905,"type":13},{"name":9,"slug":8,"type":13},{"name":4908,"slug":4909,"type":13},{"slug":4912,"name":4912,"fn":4913,"description":4914,"org":5039,"tags":5040,"stars":20,"repoUrl":21,"updatedAt":4923},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5041,5042,5043,5044],{"name":15,"slug":16,"type":13},{"name":4861,"slug":4862,"type":13},{"name":4920,"slug":4921,"type":13},{"name":9,"slug":8,"type":13},{"slug":4925,"name":4925,"fn":4926,"description":4927,"org":5046,"tags":5047,"stars":20,"repoUrl":21,"updatedAt":4937},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5048,5049,5050,5051],{"name":4931,"slug":4925,"type":13},{"name":4933,"slug":4934,"type":13},{"name":4861,"slug":4862,"type":13},{"name":9,"slug":8,"type":13},{"slug":4939,"name":4939,"fn":4940,"description":4941,"org":5053,"tags":5054,"stars":20,"repoUrl":21,"updatedAt":4951},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[5055,5056,5057,5058],{"name":4861,"slug":4862,"type":13},{"name":4946,"slug":4939,"type":13},{"name":4948,"slug":4949,"type":13},{"name":9,"slug":8,"type":13}]