TinyBase logoTinyBase β

BroadcastChannelSynchronizer

The BroadcastChannelSynchronizer interface represents a Synchronizer that lets you synchronize MergeableStore data to and from other MergeableStore instances via a browser's BroadcastChannel API.

You should use the createBroadcastChannelSynchronizer function to create a BroadcastChannelSynchronizer object.

It is a minor extension to the Synchronizer interface and simply provides an extra getChannelName method for accessing the name of the channel being used.

Since

v5.0.0

Getter methods

This is the collection of getter methods within the BroadcastChannelSynchronizer interface. There are only two getter methods, getStore and getChannelName.

Listener methods

This is the collection of listener methods within the BroadcastChannelSynchronizer interface. There are only two listener methods, addStatusListener and delListener.

Lifecycle methods

This is the collection of lifecycle methods within the BroadcastChannelSynchronizer interface. There are only three lifecycle methods, destroy, getStatus, and schedule.

Load methods

This is the collection of load methods within the BroadcastChannelSynchronizer interface. There are 4 load methods in total.

Save methods

This is the collection of save methods within the BroadcastChannelSynchronizer interface. There are 4 save methods in total.

Synchronization methods

This is the collection of synchronization methods within the BroadcastChannelSynchronizer interface. There are only three synchronization methods, getSynchronizerStats, startSync, and stopSync.

Development methods

This is the collection of development methods within the BroadcastChannelSynchronizer interface. There is only one method, getStats.