Class NetworkConditions
NetworkConditions
public sealed class NetworkConditions
- Inheritance
-
NetworkConditions
- Inherited Members
Properties
ConnectionType
Connection type if known.
[JsonPropertyName("connectionType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ConnectionType? ConnectionType { get; set; }
Property Value
DownloadThroughput
Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
[JsonPropertyName("downloadThroughput")]
public double DownloadThroughput { get; set; }
Property Value
Latency
Minimum latency from request sent to response headers received (ms).
[JsonPropertyName("latency")]
public double Latency { get; set; }
Property Value
PacketLoss
WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.
[JsonPropertyName("packetLoss")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? PacketLoss { get; set; }
Property Value
PacketQueueLength
WebRTC packet queue length (packet). 0 removes any queue length limitations.
[JsonPropertyName("packetQueueLength")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? PacketQueueLength { get; set; }
Property Value
- long?
PacketReordering
WebRTC packetReordering feature.
[JsonPropertyName("packetReordering")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? PacketReordering { get; set; }
Property Value
- bool?
UploadThroughput
Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
[JsonPropertyName("uploadThroughput")]
public double UploadThroughput { get; set; }
Property Value
UrlPattern
Only matching requests will be affected by these conditions. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. If the pattern is empty, all requests are matched (including p2p connections).
[JsonPropertyName("urlPattern")]
public string UrlPattern { get; set; }