From d09586d4c79f469b9ed3c52d202128956041ef4e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Jan 2024 10:08:56 +0000 Subject: [PATCH] Bump ws from 8.15.1 to 8.16.0 (#20905) * Bump ws from 8.15.1 to 8.16.0 Bumps [ws](https://github.com/websockets/ws) from 8.15.1 to 8.16.0. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/compare/8.15.1...8.16.0) --- updated-dependencies: - dependency-name: ws dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Disable new autoPong feature --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pascal Jufer --- api/package.json | 2 +- api/src/websocket/controllers/base.ts | 7 ++++++- pnpm-lock.yaml | 14 +++++++------- tests/blackbox/package.json | 2 +- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/api/package.json b/api/package.json index dd2370b032..eef816555b 100644 --- a/api/package.json +++ b/api/package.json @@ -166,7 +166,7 @@ "uuid": "9.0.1", "uuid-validate": "0.0.3", "wellknown": "0.5.0", - "ws": "8.15.1", + "ws": "8.16.0", "zod": "3.22.4", "zod-validation-error": "2.1.0" }, diff --git a/api/src/websocket/controllers/base.ts b/api/src/websocket/controllers/base.ts index b8a4f52606..0b294d36f6 100644 --- a/api/src/websocket/controllers/base.ts +++ b/api/src/websocket/controllers/base.ts @@ -42,7 +42,12 @@ export default abstract class SocketController { private authInterval: NodeJS.Timeout | null; constructor(httpServer: httpServer, configPrefix: string) { - this.server = new WebSocketServer({ noServer: true }); + this.server = new WebSocketServer({ + noServer: true, + // @ts-ignore TODO Remove once @types/ws has been updated + autoPong: false, + }); + this.clients = new Set(); this.authInterval = null; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 84491a0547..a8df695414 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -342,8 +342,8 @@ importers: specifier: 0.5.0 version: 0.5.0 ws: - specifier: 8.15.1 - version: 8.15.1 + specifier: 8.16.0 + version: 8.16.0 zod: specifier: 3.22.4 version: 3.22.4 @@ -2090,8 +2090,8 @@ importers: specifier: 1.1.1 version: 1.1.1(happy-dom@12.10.3)(sass@1.69.5) ws: - specifier: 8.15.1 - version: 8.15.1 + specifier: 8.16.0 + version: 8.16.0 packages: @@ -12765,7 +12765,7 @@ packages: whatwg-encoding: 2.0.0 whatwg-mimetype: 3.0.0 whatwg-url: 11.0.0 - ws: 8.15.1 + ws: 8.16.0 xml-name-validator: 4.0.0 transitivePeerDependencies: - bufferutil @@ -19743,8 +19743,8 @@ packages: optional: true dev: true - /ws@8.15.1: - resolution: {integrity: sha512-W5OZiCjXEmk0yZ66ZN82beM5Sz7l7coYxpRkzS+p9PP+ToQry8szKh+61eNktr7EA9DOwvFGhfC605jDHbP6QQ==} + /ws@8.16.0: + resolution: {integrity: sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 diff --git a/tests/blackbox/package.json b/tests/blackbox/package.json index b336c935a2..4f1dcac64f 100644 --- a/tests/blackbox/package.json +++ b/tests/blackbox/package.json @@ -34,6 +34,6 @@ "uuid": "9.0.1", "vite-tsconfig-paths": "4.2.2", "vitest": "1.1.1", - "ws": "8.15.1" + "ws": "8.16.0" } }