Merge dependabot/npm_and_yarn/examples/typescript/http-client-pool/types/node-20...
[poolifier.git] / examples / typescript / websocket-server-pool / ws-hybrid / src / main.ts
index 5cfbbf43e36e3f6fe0595bd9c1256cc8bcbf6f3e..3adac7e819b3c6a35fd5fbd6f40196ea1df2846b 100644 (file)
@@ -1,7 +1,7 @@
 import { dirname, extname, join } from 'node:path'
 import { fileURLToPath } from 'node:url'
 import { FixedClusterPool, availableParallelism } from 'poolifier'
-import { type ClusterWorkerData, type ClusterWorkerResponse } from './types.js'
+import type { ClusterWorkerData, ClusterWorkerResponse } from './types.js'
 
 const webSocketServerWorkerFile = join(
   dirname(fileURLToPath(import.meta.url)),
@@ -34,7 +34,7 @@ const pool = new FixedClusterPool<ClusterWorkerData, ClusterWorkerResponse>(
             console.error('Thread worker error:', e)
           }
         })
-        .then((response) => {
+        .then(response => {
           if (response.status) {
             console.info(
               // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
@@ -43,7 +43,7 @@ const pool = new FixedClusterPool<ClusterWorkerData, ClusterWorkerResponse>(
           }
           return null
         })
-        .catch((error) => {
+        .catch(error => {
           console.error(
             'WebSocket server failed to start in cluster worker:',
             error