ReadonlydatabaseThe local database being replicated.
ReadonlyloggerOptionalonCallback that notifies when documents have been pushed or pulled.
Note: To receive lost-access (revocation) notifications from the pull replicator when auto-purge is disabled, this callback must be registered before starting the pull replicator.
OptionalonCallback that notifies when status changes.
Current replication status & progress.
Runs the replicator.
This is an async operation. The returned Promise resolves when the replication completes.
A continuous replication usually never completes, unless it encounters a fatal error or
you stop it, so you may not want to await it.
Stops the replicator. The current run operation's Promise will resolve with an error as soon as possible.
Does nothing if run is not active.
Syncs one or more Collections with their remote counterparts.