repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: refine README.md badges
[poolifier.git]
/
examples
/
typescript
/
websocket-server-pool
/
ws-worker_threads
/
requests.js
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 3f796e3649a0d3ccb719c92cdfcad6f7eab9c189..2c73376f6ee4089920e10a12c52560062ef3c2c1 100644
(file)
--- 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')
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++) {
)
}
for (let i = 0; i < 60; i++) {
- ws.send(JSON.stringify({ type: 'factorial', data: { number:
3
0 } }))
+ ws.send(JSON.stringify({ type: 'factorial', data: { number:
5000
0 } }))
}
})
}
})
-ws.on('message',
(message)
=> {
+ws.on('message',
message
=> {
console.info('message received: %s', message)
})
console.info('message received: %s', message)
})