|
|
@@ -507,8 +507,8 @@ You can think of this as a finite state machine. These are the states (use getSt
|
|
|
While in state 1, you can only add test points, you cannot change the test settings. When you're done, use selectServer(callback) to select the test point with the lowest ping. This is asynchronous, when it's done, it will call your callback function and move to state 2. Calling setSelectedServer(server) will manually select a server and move to state 2.
|
|
|
* __2__: test point selected, ready to start the test. Use `start()` to begin, this will move to state 3
|
|
|
* __3__: test running. Here, your `onupdate` event callback will be called periodically, with data coming from the worker about speed and progress. A data object will be passed to your `onupdate` function, with the following items:
|
|
|
- - `dlStatus`: download speed in mbps
|
|
|
- - `ulStatus`: upload speed in mbps
|
|
|
+ - `dlStatus`: download speed in Mbit/s
|
|
|
+ - `ulStatus`: upload speed in Mbit/s
|
|
|
- `pingStatus`: ping in ms
|
|
|
- `jitterStatus`: jitter in ms
|
|
|
- `dlProgress`: progress of the download test as a float 0-1
|