SyncManager constructor

SyncManager({
  1. required CRDTDocument document,
  2. required CRDTSocketClient client,
})

Constructor

Implementation

SyncManager({
  required this.document,
  required this.client,
}) : _failuresHandler = ChangeFailuresHandler(
        // setup the retry interval as the reconnect interval
        client: client,
        retryInterval: Protocol.reconnectInterval,
      ) {
  // Listen to the local changes and send them to the server
  _localChangesSubscription =
      document.localChanges.listen(_handleLocalChange);
}