Skip to content

Build your personal knowledge base with Trilium Notes

increased "connection lost" timeout from 5 seconds to 30, it was way to common and mostly false positive

azivner2582b016f976
diff --git a/src/public/javascripts/messaging.js b/src/public/javascripts/messaging.js
index 2ad1c01277..15eeeeab06 100644
--- a/src/public/javascripts/messaging.js
+++ b/src/public/javascripts/messaging.js
@@ -84,7 +84,7 @@ const messaging = (function() {
let connectionBrokenNotification = null;
setInterval(async () => {
- if (new Date().getTime() - lastPingTs > 5000) {
+ if (new Date().getTime() - lastPingTs > 30000) {
if (!connectionBrokenNotification) {
connectionBrokenNotification = $.notify({
// options