repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-worker_thr...
[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 9712432642eb2b7a3cff7312dd806d3eea5cfce1..ebf35134f97b53db152f56ffa3fd15fa81ea9f84 100644
(file)
--- a/
examples/typescript/websocket-server-pool/ws-cluster/src/main.ts
+++ b/
examples/typescript/websocket-server-pool/ws-cluster/src/main.ts
@@
-15,18
+15,18
@@
const pool = new FixedClusterPool<WorkerData, WorkerResponse>(
onlineHandler: () => {
pool
.execute({ port: 8080 })
onlineHandler: () => {
pool
.execute({ port: 8080 })
- .then(
response
=> {
+ .then(
(response)
=> {
if (response.status) {
console.info(
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
if (response.status) {
console.info(
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
- `WebSocket server is listening
o
n cluster worker on port ${response.port}`
+ `WebSocket server is listening
i
n cluster worker on port ${response.port}`
)
}
return null
})
)
}
return null
})
- .catch(
error
=> {
+ .catch(
(error)
=> {
console.error(
console.error(
- 'WebSocket server failed to start
o
n cluster worker:',
+ 'WebSocket server failed to start
i
n cluster worker:',
error
)
})
error
)
})