socket.io Broadcast to all other sockets


Example

It is possible to emit a message or data to all users except the one making the request:

var io = require('socket.io')(80);
io.on('connection', function (socket) {
  socket.broadcast.emit('user connected');
});