Send an update for a given entity. This must be called to send local changes to remote peers.
Subscribe to updates for a given entity.
Every time the sync interface has an update for the entity it will call handleUpdate
, passing
it the entity ID and the update.
The entity ID to subscribe to.
The latest snapshot that the subscriber has locally.
The handler function to be invoked when the sync interface has a new update.
Returns a function that may be called to unsubscribe.
An implementation of an entity synchronizer. A synchronizer allows you to sync entities with other peers, possibly over the network, etc.
Different syncers can be used to sync an entity across different protocols or connection types.