pub struct EmulateNetworkConditionsParams {
pub offline: bool,
pub latency: f64,
pub download_throughput: f64,
pub upload_throughput: f64,
pub connection_type: Option<ConnectionType>,
pub packet_loss: Option<f64>,
pub packet_queue_length: Option<i64>,
pub packet_reordering: Option<bool>,
}Expand description
Activates emulation of network conditions. This command is deprecated in favor of the emulateNetworkConditionsByRule and overrideNetworkState commands, which can be used together to the same effect.
Deprecated in the protocol.
Parameters of Network.emulateNetworkConditions.
Fields§
§offline: boolTrue to emulate internet disconnection.
latency: f64Minimum latency from request sent to response headers received (ms).
download_throughput: f64Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
upload_throughput: f64Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
connection_type: Option<ConnectionType>Connection type if known.
packet_loss: Option<f64>WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.
Experimental: may change without notice.
packet_queue_length: Option<i64>WebRTC packet queue length (packet). 0 removes any queue length limitations.
Experimental: may change without notice.
packet_reordering: Option<bool>WebRTC packetReordering feature.
Experimental: may change without notice.