MenuMenu

socket.on(get-public-rooms) | RTCMultiConnection

This event allows you get list of all public rooms

How to use

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 "get-public-rooms": demos/dashboard.html