Answer the question
In order to leave comments, you need to log in
How to disconnect socket from server side by socket.id?
Good afternoon, please tell me how to execute the "disconnect ()" function but for a specific user, by socket.id .
Answer the question
In order to leave comments, you need to log in
var clients = io.sockets.clients();
var clients = io.sockets.clients('room'); // all users from room `room`
Thank you, of course, but I need socket.id for a specific one. everything was stated in the question.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question