Skip to main content

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

ParameterTypeDescription
busIdnumberThe unique ID assigned to the event bus.
onSyncedEventReceived(topic, data, isCached) => voidA function to call when a synced event from another event bus instance is received.

Returns

EventBusSyncHandler

An object that handles syncing events published to the specified event bus to other event bus instances.