Use this property to set unique identifier for your page
connection.publicRoomIdentifier = 'unique-id-for-your-page'; // required connection.socket.emit('get-public-rooms', connection.publicRoomIdentifier, function(listOfRooms) { listOfRooms.forEach(function(room) { console.log(roomid); }); });
Here is a demo that is using "publicRoomIdentifier" and "get-public-rooms": demos/dashboard.html</p> </section>