I have a Node server with SocketIO and several connections. How is it possible to disconnect an existing socket based on its ID? There are rooms, an admin in each room and o
On server side you can access io.sockets.connected which holds all connected sockets:
io.sockets.connected
io.sockets.connected[socketId].disconnect();