index.js
function (opts) {
  if (!(this instanceof Worker)) {
    return new Worker(opts);
  }

  this.opts = opts;
  this.port = this.opts.port || 8888;
  this.apps = opts.apps;

  if (typeof (this.apps) !== 'object') {
    this.apps = JSON.parse(this.apps);
  }

  this.server = http.createServer(this._handleHttp.bind(this));
  return this;
}
function (opts) {
  if (!(this instanceof Worker)) {
    return new Worker(opts);
  }

  this.opts = opts;
  this.port = this.opts.port || 8888;
  this.apps = opts.apps;

  if (typeof (this.apps) !== 'object') {
    this.apps = JSON.parse(this.apps);
  }

  this.server = http.createServer(this._handleHttp.bind(this));
  return this;
}
function ( opts ) { if ( ! ( this instanceof Worker ) ) { return new Worker ( opts ) ; } this . opts = opts ; this . port = this . opts . port || 8888 ; this . apps = opts . apps ; if ( typeof ( this . apps ) !== 'object' ) { this . apps = JSON . parse ( this . apps ) ; } this . server = http . createServer ( this . _handleHttp . bind ( this ) ) ; return this ; }
Constructor of our worker

@param {object} opts The options
@returns {Worker} The instance of our worker
@constructor
Constructor of our worker