GitHub Documentation Patreon donate button

Dynamic refreshing of room list for lobby



  • Is this possible? I need advice on how to implement this. I see there is a method getAvailableRooms on client, but I need dynamic event based solution, room list in a lobby should be updated with every change (number of clients in a room, availability...). Pls help.


  • gladiator

    You could use something like setInterval to get the room list on a loop. There is no way to watch for it to be emitted though.


 

GitHub Documentation Patreon donate button

© 2019 Endel Dreyer