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 ad58bd20ccb8806f2954da84f46b82886f9dd71c..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,7
+15,7
@@
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
@@
-24,7
+24,7
@@
const pool = new FixedClusterPool<WorkerData, WorkerResponse>(
}
return null
})
}
return null
})
- .catch(
error
=> {
+ .catch(
(error)
=> {
console.error(
'WebSocket server failed to start in cluster worker:',
error
console.error(
'WebSocket server failed to start in cluster worker:',
error