constructor(options) {
    this._onConnection = this._onConnection.bind(this);
    this._onError = this._onError.bind(this);

    this._options = _.defaults(options, {
      Server: WebSocket.Server,
    });

    this._sessionManager = new DetoxSessionManager();

    this._wss = null;
    this._opening = null;
    this._closing = null;
  }
@param {number} options.port
@param {boolean} options.standalone