docs: 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;
  }