Answer the question
In order to leave comments, you need to log in
Socket io on the client side?
There is an app on node+socket.io . Suppose the client has a js file containing a socket connection and the following message
socket.on('join', function(nickname) {
socket.nickname = nickname;
socket.broadcast.emit('notice', nickname + ' has joined the chat.');
});
Answer the question
In order to leave comments, you need to log in
1. Not at all
2. Because the code was already executed before it was changed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question