From: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:21:06 +0000 (+0000) Subject: [autofix.ci] apply automated fixes X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b858d8d7a7e2d9f71895fe5313ad93263a8f1bc9;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 5b44a950..3031bd66c 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,7 @@ class WebSocketServerWorker extends ClusterWorker { ws.on('error', console.error) ws.on('message', (message: RawData) => { const { data, type } = 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 d5695575..779f3760 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,7 @@ class WebSocketServerWorker extends ClusterWorker< ws.on('error', console.error) ws.on('message', (message: RawData) => { const { data, type } = JSON.parse( - // eslint-disable-next-line @typescript-eslint/no-base-to-string + message.toString() ) as MessagePayload switch (type) {