IMQServiceOptions.echoRequest property

Whether a reply carries back the whole request it answers.

Signature:

echoRequest?: boolean;

Default Value

true

Remarks

By default a reply echoes the request in full, every argument value included, and an error reply also carries the arguments in IMQRPCError.args. A caller with a large argument receives it back with every answer. Set false and the reply's IMQRPCResponse.request holds only from and method, and an error reply has no args. That is all a client reads from a reply it cannot match to a call, which it re-emits by method name, so clients of any version read these replies as before.

Only what is sent changes. The service's own beforeCall, wrapCall and afterCall hooks, and its log of a failed call, still see the full request and arguments. A call answered in-process gets the same trimmed reply as a queued one.

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