Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-worker_thr...
[poolifier.git] / examples / typescript / websocket-server-pool / ws-worker_threads / src / main.ts
index 1eda1e92dd3b8f47ecbde99b9098768388eb92cf..d5b2cc78e8e4feda873602ea9b1074e581d3d8f9 100644 (file)
@@ -5,12 +5,12 @@ import { requestHandlerPool } from './pool.js'
 const port = 8080
 const wss = new WebSocketServer({ port }, () => {
   console.info(
-    `⚡️[ws server]: WebSocket server is started at http://localhost:${port}/`
+    `⚡️[ws server]: WebSocket server is started at ws://localhost:${port}/`
   )
 })
 
 const emptyFunction = (): void => {
-  /** Intentional */
+  /* Intentional */
 }
 
 wss.on('connection', ws => {
@@ -31,7 +31,7 @@ wss.on('connection', ws => {
                 data: response.data
               })
             )
-            return null
+            return undefined
           })
           .catch(emptyFunction)
         break
@@ -45,7 +45,7 @@ wss.on('connection', ws => {
                 data: response.data
               })
             )
-            return null
+            return undefined
           })
           .catch(emptyFunction)
         break