Repository navigation
Replies: 1 comment
|
That stack points to Log the actual runtime context immediately before that line: import cluster from 'node:cluster';
console.log({
isPrimary: cluster.isPrimary,
isWorker: cluster.isWorker,
workerId: cluster.worker?.id,
});In a worker, expect There is also a separate configuration issue: supplying the Redis adapter in
I reproduced the same Disclosure: AI-assisted investigation and writing; the primary/worker comparison was executed locally on Node 24.16.0. |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm trying to set up Socket.IO with cluster support using PM2, following this docs.
Here's my code:
While I try to run my code, it showing this error
Command I used to run in PM2:
Thanks!
All reactions