kkrpc
    Preparing search index...

    Interface RPCResponseContext

    Response state after the handler returns but before serialization.

    interface RPCResponseContext {
        id: string;
        meta?: RPCMessageMetadata;
        method: string;
        operation: RPCOperation;
        path: string[];
        result: unknown;
        state: Record<string, unknown>;
    }
    Index

    Properties

    id: string

    Request id.

    Protocol-level metadata attached to the incoming request.

    method: string

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

    operation: RPCOperation

    Operation that completed successfully.

    path: string[]

    Property path on the exposed local API.

    result: unknown

    Mutable result that will be sent to the caller.

    state: Record<string, unknown>

    Per-request state shared across plugin hooks.