According to socket.io examples:
To broadcast, simply add a broadcast flag to emit and send method calls. Broad
broadcast
emit
send
Maybe this will help someone
socket.broadcast.to('room1').emit('updatechat', 'SERVER', username + ' has connected to this room');
see
Nodejs and Socketio Multiroom Chat Tutorial