Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
connection lost error is now logged only to the console, it was too annoying while being mostly harmless
azivnera40bf71fd4e5
diff --git a/src/public/javascripts/services/messaging.js b/src/public/javascripts/services/messaging.jsindex 8177b0d830..db8140c241 100644--- a/src/public/javascripts/services/messaging.js+++ b/src/public/javascripts/services/messaging.js@@ -82,26 +82,10 @@ setTimeout(() => {lastSyncId = glob.maxSyncIdAtLoad;lastPingTs = new Date().getTime();- let connectionBrokenNotification = null;setInterval(async () => {if (new Date().getTime() - lastPingTs > 30000) {- if (!connectionBrokenNotification) {- connectionBrokenNotification = $.notify({- // options- message: "Lost connection to server"- },{- // options- type: 'danger',- delay: 100000000 // keep it until we explicitly close it- });- }- }- else if (connectionBrokenNotification) {- await connectionBrokenNotification.close();- connectionBrokenNotification = null;-- infoService.showMessage("Re-connected to server");+ console.log("Lost connection to server");}ws.send(JSON.stringify({