...
testInternetConnectivity()
Code Block | ||
---|---|---|
| ||
Promise <InterfaceTestResult>Promise<InterfaceTestResult> testInternetConnectivity() |
...
testNetworkInterface()
Code Block | ||
---|---|---|
| ||
Promise <InterfaceTestResult>Promise<InterfaceTestResult> testNetworkInterface(DOMString interface_name) |
...
[bool] ok
: A Boolean flag indicating whether the network interface or Internet connection passed diagnostic tests[DOMStringString] diagnosis
: A single-line diagnosis of the first problem identified with the network interface or Internet connection[Log] log
: A Log object containing diagnostic information related to the network interface or Internet connection
...
This interface contains a list of diagnostic logs. Each log contains the following attributes:
[DOMStringString] name
: A description of the diagnostic[bool] pass
: A Boolean flag indicating whether the diagnostic was successful[DOMStringString] result
: A description of the diagnostic result[DOMStringListStringList] info
: A string list containing diagnostic data
PingConfig
[long] count:
[long] interval:
[long] timeout:
[long] packetsize:
[bool] ipv4:
[bool] ipv6:
Example
The following script creates a networkdiagnostics instance and logs Internet diagnostic data to the console:
...