X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fwebsocket-server-pool%2Fws-worker_threads%2Fsrc%2Fmain.ts;h=d5b2cc78e8e4feda873602ea9b1074e581d3d8f9;hb=bbb68ef17fa9731bc97ae9d80ec17979929f4371;hp=1eda1e92dd3b8f47ecbde99b9098768388eb92cf;hpb=d2bc8d8026164b1389822feced0f42af20552176;p=poolifier.git 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 1eda1e92..d5b2cc78 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 @@ -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