API reference@evolu/commonWorker › BroadcastChannel

Defined in: packages/common/src/Worker.ts:252

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

Extended by

Methods

[dispose]()

dispose: void;

Defined in: node_modules/@typescript/old/lib/lib.esnext.disposable.d.ts:34

Inherited from

Disposable.[dispose]

Properties

onMessage

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

Defined in: packages/common/src/Worker.ts:257

Handler for incoming broadcast messages.


postMessage

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

Defined in: packages/common/src/Worker.ts:254

Posts a message to other channels with the same name.