bitcorenode/index.js
function(options) {
  EventEmitter.call(this);

  this.node = options.node;
  this.https = options.https || this.node.https;
  this.httpsOptions = options.httpsOptions || this.node.httpsOptions;
  this.bwsPort = options.bwsPort || baseConfig.port;
  this.messageBrokerPort = options.messageBrokerPort || 3380;
  if (baseConfig.lockOpts) {
    this.lockerPort = baseConfig.lockOpts.lockerServer.port;
  }
  this.lockerPort = options.lockerPort || this.lockerPort;
}
function(options) {
  EventEmitter.call(this);

  this.node = options.node;
  this.https = options.https || this.node.https;
  this.httpsOptions = options.httpsOptions || this.node.httpsOptions;
  this.bwsPort = options.bwsPort || baseConfig.port;
  this.messageBrokerPort = options.messageBrokerPort || 3380;
  if (baseConfig.lockOpts) {
    this.lockerPort = baseConfig.lockOpts.lockerServer.port;
  }
  this.lockerPort = options.lockerPort || this.lockerPort;
}
function ( options ) { EventEmitter . call ( this ) ; this . node = options . node ; this . https = options . https || this . node . https ; this . httpsOptions = options . httpsOptions || this . node . httpsOptions ; this . bwsPort = options . bwsPort || baseConfig . port ; this . messageBrokerPort = options . messageBrokerPort || 3380 ; if ( baseConfig . lockOpts ) { this . lockerPort = baseConfig . lockOpts . lockerServer . port ; } this . lockerPort = options . lockerPort || this . lockerPort ; }
A Bitcore Node Service module
@param {Object} options
@param {Node} options.node - A reference to the Bitcore Node instance
-* @param {Boolean} options.https - Enable https for this module, defaults to node settings.
@param {Number} options.bwsPort - Port for Bitcore Wallet Service API
@param {Number} options.messageBrokerPort - Port for BWS message broker
@param {Number} options.lockerPort - Port for BWS locker port
A Bitcore Node Service module