[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Worker](https://evolu.dev/docs/api-reference/common/Worker) › BroadcastChannel

Defined in: [packages/common/src/Worker.ts:252](https://github.com/evoluhq/evolu/blob/59dabb7c56c68040b30d3919013adeb2b40bad10/packages/common/src/Worker.ts#L252)

Typed, disposable BroadcastChannel.

Broadcast channels deliver messages to other channels opened with the same
name. The sending channel does not receive its own messages.

## See

https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel

## Extends

- [`Disposable`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html#using-declarations-and-explicit-resource-management)

## Extended by

- [`TestBroadcastChannel`](https://evolu.dev/docs/api-reference/common/Worker/interfaces/TestBroadcastChannel)

## Methods

<a id="dispose"></a>

### \[dispose\]()

```ts
dispose: void;
```

Defined in: node\_modules/@typescript/old/lib/lib.esnext.disposable.d.ts:34

#### Inherited from

```ts
Disposable.[dispose]
```

## Properties

<a id="onmessage"></a>

### onMessage

```ts
onMessage: ((message: Output) => void) | null;
```

Defined in: [packages/common/src/Worker.ts:257](https://github.com/evoluhq/evolu/blob/59dabb7c56c68040b30d3919013adeb2b40bad10/packages/common/src/Worker.ts#L257)

Handler for incoming broadcast messages.

---

<a id="postmessage"></a>

### postMessage

```ts
readonly postMessage: (message: Input) => void;
```

Defined in: [packages/common/src/Worker.ts:254](https://github.com/evoluhq/evolu/blob/59dabb7c56c68040b30d3919013adeb2b40bad10/packages/common/src/Worker.ts#L254)

Posts a message to other channels with the same name.