imqCallResolver() function

Builds a call resolver that resolves the pending promise and then runs the optional after-call hook.

Signature:

export declare function imqCallResolver(resolve: (data: any) => void, req: IMQRPCRequest, client: IMQClient): (data: any, res: IMQRPCResponse) => void;

Parameters

Parameter

Type

Description

resolve

(data: any) => void

the underlying promise resolver

req

IMQRPCRequest

the originating request message

client

IMQClient

the client the call belongs to

Returns:

(data: any, res: IMQRPCResponse) => void

a hook-aware resolver

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