kkrpc
    Preparing search index...

    Interface RPCPlugin

    Plugin hooks invoked while a remote request is handled locally.

    interface RPCPlugin {
        name?: string;
        onError(ctx: RPCErrorContext): void | Promise<void>;
        onRequest(ctx: RPCRequestContext): void | Promise<void>;
        onResponse(ctx: RPCResponseContext): void | Promise<void>;
        wrapHandler(
            ctx: RPCHandlerContext,
            next: () => Promise<unknown>,
        ): Promise<unknown>;
    }
    Index

    Properties

    name?: string

    Optional plugin name for diagnostics.

    Methods