Network.emulateNetworkConditions

Activates emulation of network conditions.

{
  "name": "emulateNetworkConditions",
  "description": "Activates emulation of network conditions.",
  "parameters": [
    {
      "name": "offline",
      "type": "boolean",
      "description": "True to emulate internet disconnection."
    },
    {
      "name": "latency",
      "type": "number",
      "description": "Additional latency (ms)."
    },
    {
      "name": "downloadThroughput",
      "type": "number",
      "description": "Maximal aggregated download throughput."
    },
    {
      "name": "uploadThroughput",
      "type": "number",
      "description": "Maximal aggregated upload throughput."
    },
    {
      "name": "connectionType",
      "$ref": "ConnectionType",
      "optional": true,
      "description": "Connection type if known."
    }
  ],
  "handlers": [
    "browser",
    "renderer"
  ]
}