WebTransportOptions constructor

WebTransportOptions({
  1. bool? allowPooling,
  2. bool? requireUnreliable,
  3. Iterable<WebTransportHash>? serverCertificateHashes,
  4. WebTransportCongestionControl? congestionControl,
})

Implementation

factory WebTransportOptions(
        {bool? allowPooling,
        bool? requireUnreliable,
        Iterable<WebTransportHash>? serverCertificateHashes,
        WebTransportCongestionControl? congestionControl}) =>
    WebTransportOptions._(
        allowPooling: allowPooling ?? false,
        requireUnreliable: requireUnreliable ?? false,
        serverCertificateHashes: serverCertificateHashes ?? undefined,
        congestionControl: congestionControl?.value ??
            WebTransportCongestionControl.valueDefault.value);