Skip to content

ProcedureExecutor

ProcedureExecutor<Req, Res> = (request, instance) => MaybePromise<Res>

Defined in: astrobase/src/rpc/server/server.ts:21

A handler function for a procedure.

Request handler functions deal only with the request data. The rest is handled by the SDK.

Req

The type of the request payload.

Res

The type of the response payload.

Req

The request payload.

Instance

The Instance config.

MaybePromise<Res>

The response payload.