HF RL Explorer

Task: Scaling Socket.IO to Multiple Node.js Processes Using Cluster

Task: Scaling Socket.IO to Multiple Node.js Processes Using Cluster: a task in Terminal-Lego-15k (Harbor dataset). Implement a Node.js application that uses the cluster module to spawn multiple worker processes, each running a Socket.IO server behind a shared port. The challenge is to ensure that…

The task

Implement a Node.js application that uses the `cluster` module to spawn multiple worker processes, each running a Socket.IO server behind a shared port. The challenge is to ensure that when a periodic message is emitted to a Socket.IO room, clients receive the message **exactly once per interval**, not once per…

Part of PrimeIntellect/Terminal-Lego-15k.