code: function(timeout, how_many_intervals){
      var that = this;
  
      that.timeout = timeout;
      that.not_poked = 0;
  
      that._onTimeout = function(){
          that.not_poked += 1;
          if (that.not_poked === how_many_intervals) {
              that.emit('timeout');
          }
          that._restartTimeout();
      };
      that._restartTimeout();
  }
docs: [*] Including lib/heartbeater.js /*
  ***** BEGIN LICENSE BLOCK *****
  Copyright (c) 2011-2012 VMware, Inc.
  
  For the license see COPYING.
  ***** END LICENSE BLOCK *****