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=4b956424db4efaf8778d164b54219a1bba6fc2c3;hp=6283759d403047be2837b8322147f0741973adcd;hpb=72855e9267a3268aa40be64f4cde6287e7c1c52e;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 6283759d..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 @@ -10,7 +10,7 @@ const wss = new WebSocketServer({ 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