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 fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
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 fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
.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 fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
.prettierrc.json feat(package): adjust packages to workspaces 2022-12-04 20:59:46 +01:00
.prettierrc.json.license feat(package): adjust packages to workspaces 2022-12-04 20:59:46 +01:00
CHANGELOG.md fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
jest-e2e.json fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
jest-e2e.json.license fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
nest-cli.json fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
nest-cli.json.license fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
package.json fix(deps): update dependency @nestjs/swagger to v7.0.8 2023-06-27 11:47:46 +02:00
package.json.license fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
tsconfig.build.json fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
tsconfig.build.json.license fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
tsconfig.json fix(backend): keep log output in dev mode 2023-03-28 11:34:05 +02:00
tsconfig.json.license fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00