IMQ class

Message queue factory. This is also the default export of @imqueue/core.

Signature:

export default class IMQ 

Remarks

The factory only selects and instantiates an adapter — it performs no I/O, so the queue it returns is not connected. Call start() on it (or send(), which starts the queue implicitly) before use.

Methods

Method

Modifiers

Description

create(name, options, mode)

static

Instantiates the queue adapter matching the given options and returns it ready to be started.

The adapter is chosen from options.vendor, of which only 'Redis' is supported. When either options.cluster or options.clusterManagers is present, the clustered adapter is returned instead of the single-server one.

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