Client
Call oRPC procedures with full type safety from browsers, apps, and servers: create clients over links, call locally during SSR, handle errors, and stream.
A client calls procedures like local functions, typed from your router or contract. Client-side clients call a server through a link, such as the RPC Link or OpenAPI Link. Server-side clients call procedures in the same process.
- Server-Side Clients: call procedures directly, without HTTP.
- Client-Side Clients: create a client over a link, with context and interceptors.
- Error Handling: handle errors with
try/catchor fully typedsafecalls. - AsyncIteratorObject (SSE): consume streamed events.
- DynamicLink: choose a link per call at runtime.
To add retries, batching, or timeouts, see Plugins.