broadcast messages to all clients, send also number of outstanding syncs

This commit is contained in:
azivner
2017-11-25 18:31:38 -05:00
parent 992238f0b3
commit cb31e0acf2
3 changed files with 16 additions and 11 deletions

View File

@@ -165,5 +165,8 @@ ws.onmessage = function (event) {
noteEditor.reload();
}
const changesToPushCountEl = $("#changesToPushCount");
changesToPushCountEl.html(message.changesToPushCount);
}
};

View File

@@ -38,10 +38,10 @@ const status = (function() {
// noteEditor.reload();
// }
changesToPushCountEl.html(resp.changesToPushCount);
//changesToPushCountEl.html(resp.changesToPushCount);
}
setInterval(checkStatus, 5 * 1000);
//setInterval(checkStatus, 5 * 1000);
return {
checkStatus