socket.io-cluster-adapter icon indicating copy to clipboard operation
socket.io-cluster-adapter copied to clipboard

The Socket.IO official cluster adapter, allowing to broadcast events between several Socket.IO servers.

Results 5 socket.io-cluster-adapter issues
Sort by recently updated
recently updated
newest added

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...

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.

enhancement

Would a combination of Cluster Adapter and inter-server adapters like Redis Adapter be possible? See diagram below. ![Untitled drawing](https://user-images.githubusercontent.com/42513874/135736738-bdf338c6-b91c-40b0-bb32-9be05b66d770.png)

enhancement

## 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,...