Skip to content

UnaryHandler

type UnaryHandler = (params, ctx) =>
| Promise<
| Record<string, any>
| ExternalRef>
| Record<string, any>
| ExternalRef;

Defined in: src/types.ts:222

Handler for unary (request-response) RPC methods.

Returns the result values ({ result: value }), or an ExternalRef to a pre-published result: the dispatcher then writes that ref’s pointer batch directly, with no result build, validation, serialization or upload (see publishExternal).

Parameter Type
params Record<string, any>
ctx LogContext

| Promise< | Record<string, any> | ExternalRef> | Record<string, any> | ExternalRef