if (response.status) {
console.info(
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
- `Fastify is listening on cluster worker on port ${response.port}`
+ `Fastify is listening in cluster worker on port ${response.port}`
)
}
return null
})
.catch(error => {
- console.error('Fastify failed to start on cluster worker:', error)
+ console.error('Fastify failed to start in cluster worker:', error)
})
},
errorHandler: (e: Error) => {
if (response.status) {
console.info(
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
- `Fastify is listening on cluster worker on port ${response.port}`
+ `Fastify is listening in cluster worker on port ${response.port}`
)
}
return null
})
.catch(error => {
- console.error('Fastify failed to start on cluster worker:', error)
+ console.error('Fastify failed to start in cluster worker:', error)
})
},
errorHandler: (e: Error) => {
if (response.status) {
console.info(
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
- `WebSocket server is listening on cluster worker on port ${response.port}`
+ `WebSocket server is listening in cluster worker on port ${response.port}`
)
}
return null
})
.catch(error => {
console.error(
- 'WebSocket server failed to start on cluster worker:',
+ 'WebSocket server failed to start in cluster worker:',
error
)
})
const { port } = workerData as WorkerData
const wss = new WebSocketServer({ port }, () => {
console.info(
- `⚡️[ws server]: WebSocket server is started on cluster worker at ws://localhost:${port}/`
+ `⚡️[ws server]: WebSocket server is started in cluster worker at ws://localhost:${port}/`
)
})
if (response.status) {
console.info(
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
- `WebSocket server is listening on cluster worker on port ${response.port}`
+ `WebSocket server is listening in cluster worker on port ${response.port}`
)
}
return null
})
.catch(error => {
console.error(
- 'WebSocket server failed to start on cluster worker:',
+ 'WebSocket server failed to start in cluster worker:',
error
)
})
const { port } = workerData as ClusterWorkerData
const wss = new WebSocketServer({ port }, () => {
console.info(
- `⚡️[ws server]: WebSocket server is started on cluster worker at ws://localhost:${port}/`
+ `⚡️[ws server]: WebSocket server is started in cluster worker at ws://localhost:${port}/`
)
})