You're viewing archived documentation for @imqueue/rpc v1.17.1. APIs may differ from the current release. View the latest version ↗

imqCallRejector() function

Builds and returns call rejector, which supports after call optional 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

source promise like rejector

req

IMQRPCRequest

call request

client

IMQClient

imq client {(err: any) => void} - hook-supported reject

Returns:

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