From d29d6adbac630118d8dd01af239a0f4514948d7e Mon Sep 17 00:00:00 2001 From: nekrondev Date: Sat, 17 Feb 2024 12:07:26 +0100 Subject: [PATCH] fix(webapp): downstream keep-alive events to backend preventing timeout Updated http4s component fixed idleTimeout between backend and proxy / client that requires now to send keep-alive messages from client to backend to prevent a timeout after 60s. This resolves #2497. --- modules/webapp/src/main/webjar/docspell.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/webapp/src/main/webjar/docspell.js b/modules/webapp/src/main/webjar/docspell.js index 8a9d24f6..1c5d5b5d 100644 --- a/modules/webapp/src/main/webjar/docspell.js +++ b/modules/webapp/src/main/webjar/docspell.js @@ -152,6 +152,8 @@ function initWS() { var dataJSON = JSON.parse(event.data); if (dataJSON.tag !== "keep-alive") { elmApp.ports.receiveWsMessage.send(dataJSON); + } else { + dsWebSocket.send(event.data); } } });