What problem does it solve?
This skill helps developers configure tRPC client link chains so operations are routed correctly, subscriptions are handled by the right transport, and terminating links prevent runtime failures.
Core Features & Use Cases
- Terminate link chains correctly using httpLink, httpBatchLink, httpBatchStreamLink, wsLink, httpSubscriptionLink, or unstable_localLink to avoid "no more links to execute" errors.
- Route subscription operations through splitLink to SSE or WebSocket transports and disable batching per-request via context flags.
- Tune batching limits and streaming behavior with options like maxURLLength, maxItems, and stream headers, and compose custom links for service-oriented routing and timing/logging instrumentation.
Quick Start
Create a tRPC client that uses splitLink to send subscription operations to an EventSource-based httpSubscriptionLink and all other operations to an httpBatchLink with appropriate maxItems and headers.