Updated embed to accommodate the new changees for dead listeners

This commit is contained in:
Kasper Rynning-Tønnesen
2017-09-08 14:59:54 +02:00
parent 0483250196
commit 4c7b8e17e1
2 changed files with 7 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -90,6 +90,12 @@ $(document).ready(function(){
setTimeout(function(){socket.emit('list', {channel: chan.toLowerCase(), pass: ''});},1000); setTimeout(function(){socket.emit('list', {channel: chan.toLowerCase(), pass: ''});},1000);
}); });
socket.on("self_ping", function() {
if(chan != undefined && chan.toLowerCase() != "") {
socket.emit("self_ping", {channel: chan.toLowerCase()});
}
});
socket.on("viewers", function(view) socket.on("viewers", function(view)
{ {
viewers = view; viewers = view;