Skip to content
Advertisement

Where is io.sockets.adapter.rooms in io of nodejs?

https://stackoverflow.com/a/6727354/462608

The short answer:
io.sockets.adapter.rooms

I analysed io:

The sockets output part from io as shown in that answer contains the following:

JavaScript

Where is the adapter? Where are the rooms?

What is the way to find out adapter and rooms from the output of io?

Advertisement

Answer

I think you are trying to get room before joining it. First You have to Join room and than you can get the rooms in io.sockets.adapter.rooms You can checkout this link to know rooms

JavaScript

Log of io.sockets.adapter.rooms

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement