From: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 17:51:26 +0000 (+0000) Subject: [autofix.ci] apply automated fixes X-Git-Tag: v4.2.0~46 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2f9b773a9efbb6acdd40639db0548d6cc4982a6a;p=poolifier.git [autofix.ci] apply automated fixes --- 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) {