Is it a good way: socket.onDisconnect(); ?
I use Redis and Cluster module, I use rooms too. And sometimes I have dead sockets, that server should remove from list of sockets, but he doesn't. So i'm trying to find a reason of dead sockets, and maybe this kicking user above is wrong?