[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/broadcasting](../README) / broadcastOnce

# Function: broadcastOnce()

> **broadcastOnce**(`event`): `void`

Defined in: [broadcasting/src/BroadcastingEvent.ts:12](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/broadcasting/src/BroadcastingEvent.ts#L12)

Broadcast an event at most once (idempotent across `dispatch()` and the `Events` auto-broadcast
hook), gated by `broadcastWhen()` (default true). Used by both paths; exported for the hook.

## Parameters

### event

[`BroadcastEvent`](../interfaces/BroadcastEvent)

## Returns

`void`
