From: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:21:59 +0000 (+0000) Subject: [autofix.ci] apply automated fixes (attempt 2/3) X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0376f5a22472bc16551a711fb5d7ae5b209b8b22;p=poolifier.git [autofix.ci] apply automated fixes (attempt 2/3) --- 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) {