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

How to detect network availability? #579

Closed
pcolton opened this issue Aug 14, 2014 · 4 comments
Closed

How to detect network availability? #579

pcolton opened this issue Aug 14, 2014 · 4 comments

Comments

@pcolton
Copy link

pcolton commented Aug 14, 2014

Something like Reachability, I'd like to know when the network is up or down so my app can act accordingly, thanks.

@soh1988
Copy link
Contributor

soh1988 commented Aug 14, 2014

Should use the HTML5 Network Status
-> navigator.onLine

@ghost
Copy link

ghost commented Aug 14, 2014

You can even get notified when the status changes: MDN Online/Offline

@pcolton
Copy link
Author

pcolton commented Aug 14, 2014

Thanks!

@pcolton pcolton closed this as completed Aug 14, 2014
@xudafeng
Copy link

xudafeng commented Aug 8, 2020

#11290 (comment)

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