Socket.io rooms difference between broadcast.to and sockets.in

socket.broadcast.to broadcasts to all sockets in the given room, except to the socket on which it was called while io.sockets.in broadcasts to all sockets in the given room.

Leave a Comment