From b858d8d7a7e2d9f71895fe5313ad93263a8f1bc9 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:21:06 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../typescript/websocket-server-pool/ws-cluster/src/worker.ts | 2 +- .../ws-hybrid/src/websocket-server-worker.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/typescript/websocket-server-pool/ws-cluster/src/worker.ts b/examples/typescript/websocket-server-pool/ws-cluster/src/worker.ts index 5b44a950..3031bd66c 100644 --- a/examples/typescript/websocket-server-pool/ws-cluster/src/worker.ts +++ b/examples/typescript/websocket-server-pool/ws-cluster/src/worker.ts @@ -49,7 +49,7 @@ class WebSocketServerWorker extends ClusterWorker { ws.on('error', console.error) ws.on('message', (message: RawData) => { const { data, type } = JSON.parse( - // eslint-disable-next-line @typescript-eslint/no-base-to-string + message.toString() ) as MessagePayload switch (type) { diff --git a/examples/typescript/websocket-server-pool/ws-hybrid/src/websocket-server-worker.ts b/examples/typescript/websocket-server-pool/ws-hybrid/src/websocket-server-worker.ts index d5695575..779f3760 100644 --- a/examples/typescript/websocket-server-pool/ws-hybrid/src/websocket-server-worker.ts +++ b/examples/typescript/websocket-server-pool/ws-hybrid/src/websocket-server-worker.ts @@ -66,7 +66,7 @@ class WebSocketServerWorker extends ClusterWorker< ws.on('error', console.error) ws.on('message', (message: RawData) => { const { data, type } = JSON.parse( - // eslint-disable-next-line @typescript-eslint/no-base-to-string + message.toString() ) as MessagePayload switch (type) { -- 2.34.1