Home > git-documentdb > Sync > init
Sync.init() method#
Initialize remote connection
Signature:Promise<SyncResult >
Remarks#
Call init() once just after creating an instance.
Exceptions#
Err.CannotCreateRemoteRepositoryError
# Errors from RemoteEngine[engineName].checkFetch
Errors from Sync.trySync()
Errors from Sync.tryPush()