socket io tutorial - Broadcast to all other sockets - socket io android - socket io client



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');
});
click below button to copy the code. By Socket tutorial team

Related Searches to Broadcast to all other sockets