Answer the question
In order to leave comments, you need to log in
Socket.io: How to make an event run on all connected computers except mine?
There is this code on the server:
socket.on('connect', function() {
socket.on('clientUpdate', function() {
/*сервер выполняет все нужное*/
socket.brodcast.json.emit('serverUpdate', Obj);
})
})
Answer the question
In order to leave comments, you need to log in
I don't use socket.io, but if you're already invited to reply, try socket.broadcast.emit('eventName', data);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question