Constructor
new GlobalBusEmitter()
Methods
emit(eventName, event) → {boolean}
Emit an event, backfilling event.payload.id when missing.
Parameters:
| Name | Type | Description |
|---|---|---|
eventName | string | Name of the event channel to emit on. |
event | Object | Event object whose |
Returns:
True if the event had listeners, otherwise false.
- Type:
- boolean