ditch clients

This commit is contained in:
2019-04-26 06:58:47 +10:00
parent b20cf372c4
commit c13ec65079

View File

@@ -14,6 +14,12 @@ module.exports = {
});
const wss = new WebSocket.Server({ server });
function noop() { }
function heartbeat() {
this.isAlive = true;
}
wss.on('connection', function connection(ws) {
ws.isAlive = true;
@@ -58,11 +64,6 @@ module.exports = {
// ws.send('something');
});
function noop() { }
function heartbeat() {
this.isAlive = true;
}
const interval = setInterval(function ping() {
wss.clients.forEach(function each(ws) {