Remove listener count from listening page
This commit is contained in:
parent
af109381c1
commit
514f9899a3
|
|
@ -16,7 +16,6 @@
|
|||
<div class="live-indicator">
|
||||
<span class="pulse-dot"></span>
|
||||
<span>LIVE</span>
|
||||
<span class="listener-count-badge"><span id="listener-count">0</span> listening</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="listener-content">
|
||||
|
|
|
|||
10
listener.js
10
listener.js
|
|
@ -56,11 +56,6 @@ function updateNowPlaying(text) {
|
|||
if (el) el.textContent = text;
|
||||
}
|
||||
|
||||
function updateListenerCount(count) {
|
||||
const el = document.getElementById('listener-count');
|
||||
if (el) el.textContent = count;
|
||||
}
|
||||
|
||||
// --- Reconnection with Exponential Backoff ---
|
||||
|
||||
function scheduleReconnect() {
|
||||
|
|
@ -258,7 +253,6 @@ function initSocket() {
|
|||
socket.on('connect', () => {
|
||||
console.log('[SOCKET] Connected');
|
||||
socket.emit('join_listener');
|
||||
socket.emit('get_listener_count');
|
||||
if (window.listenerAudioEnabled) {
|
||||
updateStatus('Connected', true);
|
||||
}
|
||||
|
|
@ -275,10 +269,6 @@ function initSocket() {
|
|||
}
|
||||
});
|
||||
|
||||
socket.on('listener_count', (data) => {
|
||||
updateListenerCount(data.count);
|
||||
});
|
||||
|
||||
// --- Broadcast lifecycle events ---
|
||||
|
||||
socket.on('stream_status', (data) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue