From: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 17:52:17 +0000 (+0000) Subject: [autofix.ci] apply automated fixes (attempt 2/3) X-Git-Tag: v4.2.0~45 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0ec87be54bccf7d4965e1d5befa0f1efda4829fe;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 353e8ccc..c1db83da 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,6 @@ class WebSocketServerWorker extends ClusterWorker { ws.on('error', console.error) ws.on('message', (message: RawData) => { const { type, data } = 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 8d3f370a..53d71df4 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,6 @@ class WebSocketServerWorker extends ClusterWorker< ws.on('error', console.error) ws.on('message', (message: RawData) => { const { type, data } = JSON.parse( - 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 9006a5f2..0a308e98 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,6 @@ wss.on('connection', ws => { ws.on('error', console.error) ws.on('message', (message: RawData) => { const { type, data } = JSON.parse( - message.toString() ) as MessagePayload switch (type) {