repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: generate documentation
[poolifier.git]
/
examples
/
typescript
/
websocket-server-pool
/
ws-cluster
/
src
/
main.ts
diff --git
a/examples/typescript/websocket-server-pool/ws-cluster/src/main.ts
b/examples/typescript/websocket-server-pool/ws-cluster/src/main.ts
index 6187d71fc3ae157177c2172e9bbdfdee3d5d56ad..695dc9545c99dcb308d35a5ceda62b5e87dc887b 100644
(file)
--- a/
examples/typescript/websocket-server-pool/ws-cluster/src/main.ts
+++ b/
examples/typescript/websocket-server-pool/ws-cluster/src/main.ts
@@
-12,6
+12,7
@@
const pool = new FixedClusterPool<WorkerData, WorkerResponse>(
availableParallelism(),
workerFile,
{
availableParallelism(),
workerFile,
{
+ enableEvents: false,
onlineHandler: () => {
pool
.execute({ port: 8080 })
onlineHandler: () => {
pool
.execute({ port: 8080 })
@@
-22,7
+23,7
@@
const pool = new FixedClusterPool<WorkerData, WorkerResponse>(
`WebSocket server is listening in cluster worker on port ${response.port}`
)
}
`WebSocket server is listening in cluster worker on port ${response.port}`
)
}
- return
null
+ return
undefined
})
.catch(error => {
console.error(
})
.catch(error => {
console.error(