Skip to content

Commit

Permalink
Fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxfoo committed May 7, 2021
1 parent aca4b56 commit b1d971d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ module.exports = function (nodecg) {
const triggers = nodecg.Replicant('triggers');
const test = nodecg.Replicant('test');

//const checkconnection = setInterval(isClosed, 60000);
const equals = [];

function activateAlert(alertname, username, amount) {
Expand Down Expand Up @@ -150,13 +149,14 @@ module.exports = function (nodecg) {
});

socket.addEventListener('close', function (event) {
nodecg.log.info("Lost Connection; Will attempt to reconnect shortly....");
setTimeout(function() {
nodecg.log.info("Lost Connection....")
getClaimid();
}, 5000);
});

socket.addEventListener('error', function (event) {
nodecg.log.info("Error, cannot connect to Odysee.");
socket.close();
});
}
Expand Down

0 comments on commit b1d971d

Please sign in to comment.