X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fwebsocket-server-pool%2Fws-worker_threads%2Frequests.js;h=2c73376f6ee4089920e10a12c52560062ef3c2c1;hb=8b7aa4204c27efd1dc699f7baea65b5262bd26b3;hp=3f796e3649a0d3ccb719c92cdfcad6f7eab9c189;hpb=8ad621cc1d32ed396fca3ef2ec48337e42d2dcc2;p=poolifier.git diff --git a/examples/typescript/websocket-server-pool/ws-worker_threads/requests.js b/examples/typescript/websocket-server-pool/ws-worker_threads/requests.js index 3f796e36..2c73376f 100644 --- a/examples/typescript/websocket-server-pool/ws-worker_threads/requests.js +++ b/examples/typescript/websocket-server-pool/ws-worker_threads/requests.js @@ -1,4 +1,3 @@ -// eslint-disable-next-line import/no-unresolved, n/no-missing-import import { WebSocket } from 'ws' const ws = new WebSocket('ws://localhost:8080') @@ -12,10 +11,10 @@ ws.on('open', () => { ) } for (let i = 0; i < 60; i++) { - ws.send(JSON.stringify({ type: 'factorial', data: { number: 30 } })) + ws.send(JSON.stringify({ type: 'factorial', data: { number: 50000 } })) } }) -ws.on('message', (message) => { +ws.on('message', message => { console.info('message received: %s', message) })