F
F
Freakxeee2015-09-26 09:47:12
Node.js
Freakxeee, 2015-09-26 09:47:12

Rooms in a socket.io cluster?

Good day!
I have a socket.io cluster in which socket communication between processes occurs through Redis (socket.io-redis), everything works with a bang. But I have a task to work with rooms, and the cluster is not very friendly with them :) As far as I know, socket.io-redis is only suitable for emitting to all processes, but it does not synchronize rooms. And so the question consists in the following:
How to synchronize rooms on all processes, yes it would be possible to use io.of('room').emit(....) as well as not in a cluster application.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question