// Get the connection type.
var type = navigator.connection.type;
// The maximum downlink speed of the connection
var max = navigator.connection.downlinkMax;
function changeHandler(e) {
// Handle change to connection here.
}
// Register for event changes.
navigator.connection.onchange = changeHandler;
// Alternatively.
navigator.connection.addEventListener('change', changeHandler);
| Connection type | Underlying connection technology | Generation or Version | Max downlink speed (Mbit/s) |
|---|---|---|---|
| Data available as JSON. | |||