lib/managers/http.js
function HttpManager(options) {
  if (!(this instanceof HttpManager)) {
    return new HttpManager(options);
  }

  options = options || {};

  Manager.call(this, options);

  debug('New HttpManager: %j', options);

  this.hostname = options.hostname || null;
  this.port = options.port || Defaults.PORT;

  this.interval = options.interval || Defaults.INTERVAL;

  this._announceTimerId = null;

  this._startAnnouncements();
}
function HttpManager(options) {
  if (!(this instanceof HttpManager)) {
    return new HttpManager(options);
  }

  options = options || {};

  Manager.call(this, options);

  debug('New HttpManager: %j', options);

  this.hostname = options.hostname || null;
  this.port = options.port || Defaults.PORT;

  this.interval = options.interval || Defaults.INTERVAL;

  this._announceTimerId = null;

  this._startAnnouncements();
}
function HttpManager ( options ) { if ( ! ( this instanceof HttpManager ) ) { return new HttpManager ( options ) ; } options = options || { } ; Manager . call ( this , options ) ; debug ( 'New HttpManager: %j' , options ) ; this . hostname = options . hostname || null ; this . port = options . port || Defaults . PORT ; this . interval = options . interval || Defaults . INTERVAL ; this . _announceTimerId = null ; this . _startAnnouncements ( ) ; }
Creates a new instance of HttpManager with the provided `options`.

The HttpManager provides a client connection to the HTTP-based, Tracker
discovery system.

For more information, see the README.

@param {Object} options
Creates a new instance of HttpManager with the provided options .