Answer the question
In order to leave comments, you need to log in
How to display all clients in nodeJs?
Hello. I don't know where to look for answers to this question.
io.sockets.on( 'connection', function( client ) {
client.broadcast.emit('clientNew', {clientNew : 'Пришел новый Вася!'});
Answer the question
In order to leave comments, you need to log in
varclients = io.sockets.clients();
details here
stackoverflow.com/questions/6563885/socket-io-how-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question