imqCallRejector() function

Builds a call rejector that rejects the pending promise and then runs the optional after-call hook.

Signature:

export declare function imqCallRejector(reject: (err: any) => void, req: IMQRPCRequest, client: IMQClient): (err: any, res?: IMQRPCResponse) => void;

Parameters

Parameter

Type

Description

reject

(err: any) => void

the underlying promise rejector

req

IMQRPCRequest

the originating request message

client

IMQClient

the client the call belongs to

Returns:

(err: any, res?: IMQRPCResponse) => void

a hook-aware rejector

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.