Skip to main content
Version: v10.0.0

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 OrpcSchema and OrpcAdapter . It takes the router, or the client type, like ContractRouterClient<typeof contract> for contract-first APIs.

Import
import { OrpcSocketSchema } from "@hyper-fetch/orpc"

Preview​

type OrpcSocketSchema<Router> = OrpcSocketClientSchema<OrpcRouterClient<Router>, >;