Is it possible to get rooms which socket is currently in, without calling
io.sockets.clients(roomName)
for every room name and looking for
In socket.io version 1+ the syntax is:
socket.rooms