socket.io-cluster-adapter
socket.io-cluster-adapter copied to clipboard
The Socket.IO official cluster adapter, allowing to broadcast events between several Socket.IO servers.
Im using Express.js and socket.io/pm2 + typescript. `const clusterAdapter = createAdapter()(nsp);` `io.adapter(clusterAdapter);` `setupWorker(io);` io.adapter accepts AdapterConstructor the error: > Argument of type 'ClusterAdapter' is not assignable to parameter of type...
Error trying to call function .fetchSockets(): timeout reached: only 4 responses received out of 5
I am facing an error when fetching sockets with the .fetchSockets function. I'm using cluster-adapter + sticky + pm2 to manage workers. Code snippet that calls the fetchSockets() function: ````js...
As per socket io docs for cluster adapter [https://socket.io/docs/v4/cluster-adapter](https://socket.io/docs/v4/cluster-adapter) io is only defined in workers, Can i emit events from master process.
Would a combination of Cluster Adapter and inter-server adapters like Redis Adapter be possible? See diagram below. 
## Bug description Hello Guys, I am facing an issue where `fetchSockets` is not returning a response in cluster mode. I have tried using `ioredis` as well as `redis` connecter,...