Skip to main content

OVERRIDE_NETWORK_STATE

Constant OVERRIDE_NETWORK_STATE 

Source
pub const OVERRIDE_NETWORK_STATE: &str = "Network.overrideNetworkState";
Expand description

Override the state of navigator.onLine and navigator.connection.

Experimental: may change without notice.

Parameters:

  • offline: boolean
  • latency: number
  • downloadThroughput: number
  • uploadThroughput: number
  • connectionType: ConnectionType (optional)