ddsol / speedtest.net

node.js SpeedTest.net client module
MIT License
607 stars 126 forks source link

Async issue test completion and results #101

Closed DutchmanNL closed 4 years ago

DutchmanNL commented 4 years ago

Hi,

Thank you for this library ! I am working on integration of your hard work into the ioBroker iOT solution.

By doing that, I see timing issue in the .on events handled by the library. Behaviour :

.on('uploadspeedprogress' Keeps sending new values after the .on('uploadspeed' has bee triggered

this is strange, how can new values arrive when the test is finished and result calculated.

Current behavior : progress functions keep updating even after completed test Wanted behavior : when event like upload or download speed are fired, now new values should arrive in the progress triggers

DutchmanNL commented 4 years ago

issue was my code not the lib