From 0376f5a22472bc16551a711fb5d7ae5b209b8b22 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:59 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes (attempt 2/3) --- .../typescript/websocket-server-pool/ws-cluster/src/worker.ts | 1 - .../ws-hybrid/src/websocket-server-worker.ts | 1 - 2 files changed, 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 3031bd66c..4a0ae6a8 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,6 @@ class WebSocketServerWorker extends ClusterWorker { ws.on('error', console.error) ws.on('message', (message: RawData) => { const { data, type } = JSON.parse( - 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 779f3760..86a0c8f8 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,6 @@ class WebSocketServerWorker extends ClusterWorker< ws.on('error', console.error) ws.on('message', (message: RawData) => { const { data, type } = JSON.parse( - message.toString() ) as MessagePayload switch (type) { -- 2.34.1