-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expose effective downlink + RTT (#50)
This update exposes three new attributes, and updates the onchange trigger algorithm, that expose recently observed roundtrip and downlink bandwidth: - `downlink` exposes recently observed throughput, rounded to 25kb - `rtt` exposes recently observed roundtrip times, rounded to 25ms - `effectiveType` exposes a label (slow-2g, 2g, 3g, 4g) that maps the downlink and rtt values to a descriptor based on observed real-world performance. The developer can use the above attributes, and subscribe to their updates via the onchange callback, to get a better expected estimate for end-to-end throughput and latency and adjust the provided content.
- Loading branch information
Showing
1 changed file
with
129 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters