nesk / network.js

Make accurate network measures (like Speedtest) in your browser
MIT License
297 stars 89 forks source link

Support static files for download measures #44

Closed nesk closed 6 years ago

nesk commented 9 years ago

The client should support requesting static files for download mesures, a possible API could be:

new Network({
    download: {
        endpoint: [
            './static-file-1',
            './static-file-2',
            './static-file-3',
            './static-file-4'
        ]
    }
});

This way, the download measure will start by requesting ./static-file-1, if the measure isn't complete, it will request the second file, etc…

Network.js will provide a cli to generate a file with a specific size:

$ npm install -g network-js
$ network-js 5
-----
$ network-js 5 --content="0"
00000
$ network-js 5 data/output-file-1
$ network-js 10 data/output-file-2
nesk commented 6 years ago

Stale issue