SyncManager constructor
SyncManager({
- required CRDTDocument document,
- required CRDTSocketClient client,
Manager for the CRDT client
it's responsible for:
Constructor
Implementation
SyncManager({
required this.document,
required this.client,
}) {
// Listen to the local changes and send them to the server
_localChangesSubscription =
document.localChanges.listen(_handleLocalChange);
}