I know that in the "disconnect" listener, you cannot access socket.rooms. However in my "disconnecting" listener, I make some modifications
socket.rooms