mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
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.
This commit is contained in:
@ -152,6 +152,8 @@ function initWS() {
|
|||||||
var dataJSON = JSON.parse(event.data);
|
var dataJSON = JSON.parse(event.data);
|
||||||
if (dataJSON.tag !== "keep-alive") {
|
if (dataJSON.tag !== "keep-alive") {
|
||||||
elmApp.ports.receiveWsMessage.send(dataJSON);
|
elmApp.ports.receiveWsMessage.send(dataJSON);
|
||||||
|
} else {
|
||||||
|
dsWebSocket.send(event.data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user