index.js
function sendHeartbeat() {
    _.forOwn(_this.socks, function (sock) {
      sock.write('hb');
    });
    setTimeout(sendHeartbeat, _this.heartbeatFreq);
  }
function sendHeartbeat() {
    _.forOwn(_this.socks, function (sock) {
      sock.write('hb');
    });
    setTimeout(sendHeartbeat, _this.heartbeatFreq);
  }
function sendHeartbeat ( ) { _ . forOwn ( _this . socks , function ( sock ) { sock . write ( 'hb' ) ; } ) ; setTimeout ( sendHeartbeat , _this . heartbeatFreq ) ; }
Send a heartbeat to all opened sockets
Send a heartbeat to all opened sockets