kkrpc
    Preparing search index...

    Function runInterceptors

    • Run an interceptor chain using the onion model.

      Builds a nested call chain: interceptor[0] → interceptor[1] → ... → handler. Each interceptor's next() invokes the next one in the chain. The final next() invokes handler.

      Parameters

      • interceptors: readonly RPCInterceptor[]

        Array of interceptor functions (executed in order)

      • ctx: RPCCallContext

        The call context (shared across all interceptors)

      • handler: () => Promise<unknown>

        The actual method handler to invoke at the end of the chain

      Returns Promise<unknown>