index.js
function checkClientsHeartbeat() {
    var now = Date.now();
    _.forOwn(_this.socks, function (sock) {
      if (sock.hb + _this.clientTimeout < now) {
        logout(sock);
      }
    });
    setTimeout(checkClientsHeartbeat, 1000)
  }
function checkClientsHeartbeat() {
    var now = Date.now();
    _.forOwn(_this.socks, function (sock) {
      if (sock.hb + _this.clientTimeout < now) {
        logout(sock);
      }
    });
    setTimeout(checkClientsHeartbeat, 1000)
  }
function checkClientsHeartbeat ( ) { var now = Date . now ( ) ; _ . forOwn ( _this . socks , function ( sock ) { if ( sock . hb + _this . clientTimeout < now ) { logout ( sock ) ; } } ) ; setTimeout ( checkClientsHeartbeat , 1000 ) }
Check that all clients respond to the heartbeat in time
Check that all clients respond to the heartbeat in time