public/script/debug_interface.js
// the rooms can be clicked on to reveal a list of the available services for that room.
the rooms can be clicked on to reveal a list of the available services for that room.
the rooms can be clicked on to reveal a list of the available services for that room .
async composeRoomList() {
        const container = this.#elements.rooms;
        const { rooms } = await this.#connection.send({ command: 'environment-rooms' });
        while (container.firstChild)
            container.removeChild(container.firstChild);
        const listElement = document.createElement('ul');
        for (const name of rooms) {
            const nameElement = document.createElement('li');
            nameElement.innerText = name;
            nameElement.addEventListener(
                'click', DebugInterface.prototype.composeServiceList.bind(this, name));
            listElement.appendChild(nameElement);
        }
        container.appendChild(listElement);
    }
async composeRoomList ( ) { const container = this . #elements . rooms ; const { rooms } = await this . #connection . send ( { command : 'environment-rooms' } ) ; while ( container . firstChild ) container . removeChild ( container . firstChild ) ; const listElement = document . createElement ( 'ul' ) ; for ( const name of rooms ) { const nameElement = document . createElement ( 'li' ) ; nameElement . innerText = name ; nameElement . addEventListener ( 'click' , DebugInterface . prototype . composeServiceList . bind ( this , name ) ) ; listElement . appendChild ( nameElement ) ; } container . appendChild ( listElement ) ; }
the rooms can be clicked on to reveal a list of the available services for that room.
the rooms can be clicked on to reveal a list of the available services for that room .