X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=examples%2Ftypescript%2Fwebsocket-server-pool%2Fws-cluster%2Fsrc%2Fmain.ts;h=34e2a58ba8e5fccd20da378cbbd69932bc9f47a1;hb=6bb2a64f78c7ba84e4d3690d18c2f8ca9e418069;hp=695dc9545c99dcb308d35a5ceda62b5e87dc887b;hpb=c5033c2df4fef157ccba4adaada5794b32e83f7f;p=poolifier.git diff --git a/examples/typescript/websocket-server-pool/ws-cluster/src/main.ts b/examples/typescript/websocket-server-pool/ws-cluster/src/main.ts index 695dc954..34e2a58b 100644 --- a/examples/typescript/websocket-server-pool/ws-cluster/src/main.ts +++ b/examples/typescript/websocket-server-pool/ws-cluster/src/main.ts @@ -1,6 +1,8 @@ import { dirname, extname, join } from 'node:path' import { fileURLToPath } from 'node:url' -import { FixedClusterPool, availableParallelism } from 'poolifier' + +import { availableParallelism, FixedClusterPool } from 'poolifier' + import type { WorkerData, WorkerResponse } from './types.js' const workerFile = join( @@ -19,7 +21,6 @@ const pool = new FixedClusterPool( .then(response => { if (response.status) { console.info( - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions `WebSocket server is listening in cluster worker on port ${response.port}` ) }