From 128023d34e4daadd77391c8663664fb8604b79d6 Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 7 Dec 2022 23:58:22 +0100 Subject: [PATCH] attempt to fix the ws crash, #3374 --- src/services/ws.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/services/ws.js b/src/services/ws.js index 4581e8942..4a6d8ce90 100644 --- a/src/services/ws.js +++ b/src/services/ws.js @@ -53,6 +53,11 @@ function init(httpServer, sessionParser) { } }); }); + + webSocketServer.on('error', error => { + // https://github.com/zadam/trilium/issues/3374#issuecomment-1341053765 + console.log(error); + }); } function sendMessage(client, message) {