Are you an LLM? You can read better optimized documentation at /documentation/api/core/interfaces/RpcDefinition.md for this page in Markdown format
ws-asyncapi API / core / RpcDefinition
Interface: RpcDefinition
Defined in: .api-entries/core/index.d.ts:666
Stored RPC definition (input/output schemas + handler) on a channel.
Properties
input
input:
AnySchema
Defined in: .api-entries/core/index.d.ts:667
output
output:
AnySchema
Defined in: .api-entries/core/index.d.ts:668
errors?
optionalerrors?:Record<string,AnySchema>
Defined in: .api-entries/core/index.d.ts:674
Declared, recoverable error codes for this RPC, each with the schema of its data payload. Surfaced in the contract + generated client so the caller gets a typed, discriminated error union (see Channel.rpc).
handler
handler:
RpcHandler<any,any,any,any,any,any,any,any>
Defined in: .api-entries/core/index.d.ts:675