Oops reverse dangerous commit
This commit is contained in:
@@ -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 }), () => {
|
||||
|
||||
Reference in New Issue
Block a user