IMQClient.broadcast() method

Publishes the given payload on this client's own queue channel (IMQClient.queueName).

Signature:

broadcast(payload: JsonObject): Promise<void>;

Parameters

Parameter

Type

Description

payload

JsonObject

data to publish

Returns:

Promise<void>

Exceptions

TypeError when the client's queue has no writer connection, i.e. when called before IMQClient.start()

Remarks

Note that IMQClient.subscribe() listens on the service channel, so a broadcast is not received by other clients of the same service through the standard client API — a consumer must subscribe to this client's queueName channel explicitly.

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