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

Consider Using the Network Information API #63

Open
bradley-holt opened this issue May 21, 2017 · 1 comment
Open

Consider Using the Network Information API #63

bradley-holt opened this issue May 21, 2017 · 1 comment

Comments

@bradley-holt
Copy link

Consider using the Network Information API, if available, to augment the connection status provided by hoodie-connection-status. For example, if the Network Information API is available and indicates a connection type of none then hoodie-connection-status can skip pinging the URL and immediately indicate that connection status accordingly. If the Network Information API is available and indicates a connection type other than none then hoodie-connection-status should still attempt to ping the URL and not trust that connectivity is actually available.

@gr2m
Copy link
Member

gr2m commented May 26, 2017

This is really interesting, thanks Bradley!

One thing we have to consider is local development. My computer could be disconnected, but my app would still work as it can connect to the local server. I’m not sure if this is covered by the Network Information API as I haven’t read it yet, just want to mention this for reference

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

2 participants