onCertificateError property

Stream<CertificateErrorEvent> get onCertificateError

There is a certificate error. If overriding certificate errors is enabled, then it should be handled with the handleCertificateError command. Note: this event does not fire if the certificate error has been allowed internally. Only one client per target should override certificate errors at the same time.

Implementation

Stream<CertificateErrorEvent> get onCertificateError => _client.onEvent
    .where((event) => event.name == 'Security.certificateError')
    .map((event) => CertificateErrorEvent.fromJson(event.parameters));