Oops reverse dangerous commit

This commit is contained in:
eTronic
2018-06-25 16:43:32 -04:00
parent bc1aef018c
commit 18d7ec4796

View File

@@ -79,7 +79,6 @@ request('https://api-quiz.hype.space/shows/now', (error, response, body) => {
};
pws.on('pong', pong);
pws.on('open', () => {
Math.round(Math.random()) && pws.terminate();
setInterval(() => ping(pws, () => connectPlayer(player)), 10000);
console.log('\x1b[1m\x1b[36m%s\x1b[0m', `\nPlayer ${player.username} has connected to websocket`);
pws.send(JSON.stringify({ type:'subscribe', broadcastId }), () => {