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,...
socket.io-cluster-adapter works with nodejs clusters, and buns has released version 1.2, which also has a cluster implementation. Will there be support for these clusters in the future?
Error throws when call fetchSockets ``` node:internal/child_process/serialization:109 ser.writeValue(message); ^ Error: # could not be cloned. at writeChannelMessage (node:internal/child_process/serialization:109:9) at target._send (node:internal/child_process:851:17) at target.send (node:internal/child_process:751:19) at ClusterAdapter.publish (C:\Repositories\cifarm-containers\src\io\adapters\cluster\cluster.raw.ts:303:17) at ClusterAdapter.onMessage (C:\Repositories\cifarm-containers\src\io\adapters\cluster\cluster.raw.ts:209:18)...