<spanclass="sync-status-icon sync-status-online-with-changes"title="Connected to the sync server. There are some outstanding changes yet to be synced.">
<spanclass="sync-status-icon sync-status-online-no-changes"title="Connected to the sync server. All changes have been already synced.">
<spanclass="bx bx-wifi"></span>
</span>
<spanclass="sync-status-icon sync-status-offline-with-changes"title="Establishing the connection to the sync server was unsuccessful. There are some outstanding changes yet to be synced.">
<spanclass="sync-status-icon sync-status-offline-no-changes"title="Establishing the connection to the sync server was unsuccessful. All known changes have been synced.">
<spanclass="bx bx-wifi-off"></span>
</span>
<spanclass="sync-status-icon sync-status-in-progress"title="Sync with the server is in progress.">
if(!atLeastOnePullApplied&&entityChange.entity!=='recent_notes'){// send only for first
if(!atLeastOnePullApplied){// send only for first
ws.syncPullInProgress();
atLeastOnePullApplied=true;
@ -163,10 +169,6 @@ async function pullChanges(syncContext) {
log.info(`Pulled ${entityChanges.length} changes in ${sizeInKb} KB, starting at entityChangeId=${lastSyncedPull} in ${pulledDate-startDate}ms and applied them in ${Date.now()-pulledDate}ms, ${outstandingPullCount} outstanding pulls`);
}
if(atLeastOnePullApplied){
ws.syncPullFinished();
}
log.info("Finished pull");
}
@ -212,6 +214,8 @@ async function pushChanges(syncContext) {
entities:entityChangesRecords
});
ws.syncPushInProgress();
log.info(`Pushing ${entityChangesRecords.length} sync changes in `+(Date.now()-startDate.getTime())+"ms");