// Draw clients in the overlay // Gets called everytime an event has been received (app.js -> ws.onmessage) function drawClients() { const overlayContent = document.getElementById("content"); let result = ""; if (selfClient) { // Loop through all clients which are currently in your channel getClientsInChannel(selfClient.channel).forEach((c) => { // Open client div result += `
`; // Add image result += '
'; if (c.outputMuted) { result += ' '; } else if (c.inputMuted) { result += ' '; } else if (c.talkStatus == 1) { result += ' '; } else { result += ' '; } // Close client div result += "
"; // Add client text (name of the client) result += `

${c.name}

`; }); } overlayContent.innerHTML = result; }