Type Alias: EventBusSyncHandlerFactory()
EventBusSyncHandlerFactory = (
busId,onSyncedEventReceived) =>EventBusSyncHandler
Defined in: src/sdk/data/EventBus.ts:87
A function that creates an object that handles syncing events published to an EventBus to other event bus instances.
Parameters
| Parameter | Type | Description |
|---|---|---|
busId | number | The unique ID assigned to the event bus. |
onSyncedEventReceived | (topic, data, isCached) => void | A function to call when a synced event from another event bus instance is received. |
Returns
An object that handles syncing events published to the specified event bus to other event bus instances.