Skip to main content

Function: createSynchronizer()

createSynchronizer(synchronizerId, eventName, eventHandler, options?): Synchronizer

Create a new synchronizer instance from Synchronizer class

Parameters​

• synchronizerId: string

The id of the synchronizer.

• eventName: string

The name of the event that will be emitted by the synchronizer.

• eventHandler: ISynchronizerEventHandler

The event handler that will be called when the event is emitted.

• options?: SynchronizerOptions

Options for the synchronizer.

Returns​

Synchronizer

A reference to the synchronizer.

Defined in​

tools/src/store/SynchronizerManager/createSynchronizer.ts:15