I have searched for it in stack overflow, but could not get what I wanted certainly. So here my question is: Is it possible to get an array of rooms presently available in socket.io.
I have looked other questions like this in stackoverflow. BUt I am not clear.
when I use io.sockets.adapter.rooms
and console log the output, I get:
{ TeMJp5CVxdJlXsDiAAAA: [ TeMJp5CVxdJlXsDiAAAA: true ],
lobby: [ TeMJp5CVxdJlXsDiAAAA: true ],
'H-xHQXha_NdOs6sPAAAB': [ 'H-xHQXha_NdOs6sPAAAB': true ],
room: [ 'H-xHQXha_NdOs6sPAAAB': true ],
'5LglXlxtn498I9NaAAAC': [] }
It comprises of ids and room names mixed up. I need only array of rooms. Need help