diff --git a/app.js b/app.js index ead03a2..9a820c6 100644 --- a/app.js +++ b/app.js @@ -233,6 +233,14 @@ function sendMessage(e) { } } +function updatePeerCount() { + const peerCountElement = document.querySelector('#peer-count'); + if (peerCountElement) { + peerCountElement.textContent = `Connected Peers: ${peerCount}`; + } +} + + function scrollToBottom() { var container = document.getElementById("messages-container"); container.scrollTop = container.scrollHeight;