IMQService.publish() method

Broadcasts data on this service's pub/sub channel, delivering it to every client currently subscribed to this service.

Signature:

publish(data: JsonObject): Promise<void>;

Parameters

Parameter

Type

Description

data

JsonObject

JSON-serializable payload to broadcast

Returns:

Promise<void>

Exceptions

TypeError when the service has not been started, so the queue's writer is not connected

Remarks

Fire-and-forget: plain pub/sub with no persistence, ordering guarantee or delivery confirmation, so subscribers that are offline lose the message.

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