From 2f9b773a9efbb6acdd40639db0548d6cc4982a6a Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 17:51:26 +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 +- .../websocket-server-pool/ws-worker_threads/src/main.ts | 2 +- 3 files changed, 3 insertions(+), 3 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 d9091e7f..353e8ccc 100644 --- a/examples/typescript/websocket-server-pool/ws-cluster/src/worker.ts +++ b/examples/typescript/websocket-server-pool/ws-cluster/src/worker.ts @@ -41,7 +41,7 @@ class WebSocketServerWorker extends ClusterWorker { ws.on('error', console.error) ws.on('message', (message: RawData) => { const { type, data } = 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 72ac2a1b..8d3f370a 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 @@ -56,7 +56,7 @@ class WebSocketServerWorker extends ClusterWorker< ws.on('error', console.error) ws.on('message', (message: RawData) => { const { type, data } = 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-worker_threads/src/main.ts b/examples/typescript/websocket-server-pool/ws-worker_threads/src/main.ts index cb28beeb..9006a5f2 100644 --- a/examples/typescript/websocket-server-pool/ws-worker_threads/src/main.ts +++ b/examples/typescript/websocket-server-pool/ws-worker_threads/src/main.ts @@ -18,7 +18,7 @@ wss.on('connection', ws => { ws.on('error', console.error) ws.on('message', (message: RawData) => { const { type, data } = JSON.parse( - // eslint-disable-next-line @typescript-eslint/no-base-to-string + message.toString() ) as MessagePayload switch (type) { -- 2.34.1