socketio / socket.io-cluster-adapter

The Socket.IO official cluster adapter, allowing to broadcast events between several Socket.IO servers.
https://socket.io
MIT License
16 stars 9 forks source link

Is it possible to emit event from primary process #10

Open shubham1358 opened 1 year ago

shubham1358 commented 1 year ago

As per socket io docs for cluster adapter https://socket.io/docs/v4/cluster-adapter io is only defined in workers, Can i emit events from master process.

darrachequesne commented 1 year ago

Hi!

No, this is not currently possible, though that shouldn't be that hard to implement (a bit like the emitter counterpart for the other adapters).