Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

receivedNetworkSpeed and sendNetworkSpeed are always 0 b/s #58

Open
Spyspyspy opened this issue Aug 28, 2020 · 7 comments
Open

receivedNetworkSpeed and sendNetworkSpeed are always 0 b/s #58

Spyspyspy opened this issue Aug 28, 2020 · 7 comments

Comments

@Spyspyspy
Copy link

const myFn = async () => { let test = await Ping.getTrafficStats(); console.warn(test); }

So, I am doing like that, and speeds are always 0. For example:

{"receivedNetworkSpeed": "0B/s", "receivedNetworkTotal": "153.4MB", "sendNetworkSpeed": "0B/s", "sendNetworkTotal": "22.2MB"}

@prakashw3expert
Copy link

It seems you are trying in simulator ?

@Spyspyspy
Copy link
Author

{"receivedNetworkSpeed": "1.0KB/s", "receivedNetworkTotal": "631.9MB", "sendNetworkSpeed": "4.0KB/s", "sendNetworkTotal": "179.3MB"}

Ok. But it is not real speed. What can i do wrong?

@RoJoHub
Copy link
Owner

RoJoHub commented Aug 31, 2020

const myFn = async () => { let test = await Ping.getTrafficStats(); console.warn(test); }

So, I am doing like that, and speeds are always 0. For example:

{"receivedNetworkSpeed": "0B/s", "receivedNetworkTotal": "153.4MB", "sendNetworkSpeed": "0B/s", "sendNetworkTotal": "22.2MB"}

Maybe you haven't done any network operations?

@Spyspyspy
Copy link
Author

So, I need to download something, and than check speed?

@RoJoHub
Copy link
Owner

RoJoHub commented Aug 31, 2020

So, I need to download something, and than check speed?

yes

@Spyspyspy
Copy link
Author

Okay. And what I need to do, to check upload speed?

@Spyspyspy
Copy link
Author

And I have a question. I need to download something big, and in this time immediately call getTrfficStats? What is the best approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants