kkrpc
    Preparing search index...

    Interface RPCHandlerContext

    Request context passed to wrapHandler plugins.

    interface RPCHandlerContext {
        args: unknown[];
        id: string;
        localAPI: object;
        meta?: RPCMessageMetadata;
        method: string;
        operation: RPCOperation;
        path: string[];
        state: Record<string, unknown>;
        value?: unknown;
    }

    Hierarchy (View Summary)

    Index

    Properties

    args: unknown[]

    Decoded request arguments.

    id: string

    Request id.

    localAPI: object

    The local API object exposed by this channel.

    Protocol-level metadata attached to the incoming request.

    method: string

    Dot-joined path, useful for logging and validation lookup.

    operation: RPCOperation

    Operation being handled.

    path: string[]

    Property path on the exposed local API.

    state: Record<string, unknown>

    Per-request state shared across plugin hooks.

    value?: unknown

    Decoded setter value, present for set operations.