hedgedoc/backend
Tilman Vatteroth bb54746ccf fix(backend): prevent realtime connections getting prepared for closed websocket
The setAdapter function checks if the websocket is closed.
If this is the case then an error is thrown and the whole process will be canceled. If the adapter isn't set before the realtime connection object is prepared then the connection will subscribe to all the events and THEN the process will be canceled. Because the MessageTransporter has no adapter (and won't get one), the connection will never get a disconnect event and clean up.

This causes the flood of "cant send message over closed websocket" messages.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-27 15:19:49 +02:00
..
docker chore(deps): update node.js to 77516e1 2023-06-22 05:01:55 +00:00
public
src fix(backend): prevent realtime connections getting prepared for closed websocket 2023-06-27 15:19:49 +02:00
test fix: replace RouterModule from nest-router with @nestjs/core 2023-06-16 23:00:06 +02:00
.editorconfig
.env fix: add .env file symlinks 2023-04-13 10:39:17 +02:00
.eslintrc.js build: add eslint rule forbidding TypeORM Equal constructor 2023-03-25 16:29:14 +01:00
.gitignore
.prettierrc.json
.prettierrc.json.license
CHANGELOG.md
jest-e2e.json
jest-e2e.json.license
nest-cli.json
nest-cli.json.license
package.json fix(deps): update dependency @nestjs/swagger to v7.0.8 2023-06-27 11:47:46 +02:00
package.json.license
tsconfig.build.json
tsconfig.build.json.license
tsconfig.json fix(backend): keep log output in dev mode 2023-03-28 11:34:05 +02:00
tsconfig.json.license