IMQServiceOptions.local property
Serve this service in process as well: a client in the same process calls it directly, with no trip through the queue.
Signature:
local?: boolean;
Default Value
false
Remarks
The queue is still served, so a client in another process, a delayed call and publish() work as before, and turning this off again changes nothing a caller sees. An in-process call copies its request and its answer through JSON exactly as the queue does, so dates, class instances and undefined arrive as they would have; see wireCopy().
A service served in process belongs to the process that hosts it: it installs no signal handlers and does not drain (the host's shutdown decides when it is destroyed), its queue installs none either, and it starts no metrics server. It cannot be combined with IMQServiceOptions.multiProcess.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.