OrpcSocketSchema
Maps the type of an oRPC router to the schema understood by
createSocketSdk
. Every event iterator procedure
becomes a
$listener
- the response is the yielded value, the payload is the input and the topic is the
procedure path. Other procedures are not a part of it, call them with
OrpcSchemaandOrpcAdapter. It takes the router, or the client type, likeContractRouterClient<typeof contract>for contract-first APIs.
Import
import { OrpcSocketSchema } from "@hyper-fetch/orpc"
Source
Package
Preview
type OrpcSocketSchema<Router> = OrpcSocketClientSchema<OrpcRouterClient<Router>, >;

