Class: DataSynchronizerRealtime

DataSynchronizerRealtime(properties, timeSync)

new DataSynchronizerRealtime(properties, timeSync)

Creates The dataSynchronizer.
Parameters:
Name Type Description
properties Object the property of the object
Properties
Name Type Attributes Default Description
id String <optional>
randomUUID id of the dataSynchronizer or random if not provided
timerResolution Number <optional>
5 interval in which data is played (in milliseconds)
masterTimeRefreshRate Number <optional>
250 interval in which time value is send through broadcast channel (in milliseconds)
dataSources Array.<Datasource> the dataSource array
timeSync DataSynchronizer dataSynchronizer
Source:

Methods

(async) addDataSource(dataSource)

Adds a new DataSource object to the list of datasources to synchronize. note: don't forget to call reset() to be sure to re-init the synchronizer internal properties.
Parameters:
Name Type Description
dataSource TimeSeriesDataSource the new datasource to add
Source:

(async) connect()

Connects all dataSources
Source:

(async) disconnect()

Disconnects all dataSources
Source:

(async) isConnected()

Connect the dataSource then the protocol will be opened as well.
Source:

(async) push(dataSourceId, data)

Parameters:
Name Type Description
dataSourceId String the dataSource id
data Object the data to push into the data synchronizer
Source:

(async) removeDataSource(dataSource)

Removes a DataSource object from the list of datasources of the synchronizer.
Parameters:
Name Type Description
dataSource TimeSeriesDatasource the new datasource to add
Source:

(async) reset()

Resets reference time
Source:

terminate()

Terminate the corresponding running WebWorker by calling terminate() on it.
Source: