Wexts 4

RPC

Wexts RPC is generated from explicit service metadata, not runtime scanning.

Commands and Examples

@RpcService({ name: "hello", requireAuth: false })
@RpcMethod()
const wexts = useWexts();
await wexts.hello.sayHello("Bob");

Current Guidance

  • Run `wexts generate` after adding or changing RPC services.
  • Service names are stable and come from the generated manifest.
  • Private RPC services can require auth through Wexts RPC policy metadata.