fix: Improved websockets error handling (#3726)

* fix: Add websocket client error capturing
fix: Incorrect parsing of documentName will never be empty

* fix: Non-present documentId in collaboration route should trigger an error response

* fix: Close unhandled websocket requests
This commit is contained in:
Tom Moor
2022-07-03 09:00:59 +02:00
committed by GitHub
parent 8ebe4b27b1
commit 1f3a1d4b86
4 changed files with 87 additions and 16 deletions

View File

@@ -101,7 +101,7 @@ async function start(id: number, disconnect: () => void) {
Logger.info("lifecycle", `Starting ${name} service`);
const init = services[name];
await init(app, server);
await init(app, server, serviceNames);
}
server.on("error", (err) => {