# IMQClient.broadcast() method · @imqueue/rpc

Source: https://imqueue.org/api/rpc/latest/rpc.imqclient.broadcast/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/rpc 3.5.3 — generated reference, not hand-written

Publishes the given payload on this client's own queue channel ([IMQClient.queueName](https://imqueue.org/api/rpc/latest/rpc.imqclient.queuename/)).

**Signature:**

```typescript
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()](https://imqueue.org/api/rpc/latest/rpc.imqclient.start/)

## Remarks

Note that [IMQClient.subscribe()](https://imqueue.org/api/rpc/latest/rpc.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.

