constructor (delegate, errorHandler) {
    super(errorHandler)

    if (errorHandler) {
      this._originalErrorHandler = delegate._errorHandler
      delegate._errorHandler = this._errorHandler
    }

    this._delegate = delegate
  }
@param delegate {Connection} the delegated connection
@param errorHandler {ConnectionErrorHandler} the error handler