Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

navigator.onLine still true when turning off WiFi or turn airplane mode on in mobile devices when it try to reconnect. #27

Open
Mahboobeh-binary opened this issue Dec 25, 2018 · 0 comments

Comments

@Mahboobeh-binary
Copy link

Mahboobeh-binary commented Dec 25, 2018

navigator.onLine is still true when turning off WiFi or turn airplane mode on in mobile devices when try to reconnect.

It happens because websocket connection closes before browser detect you went "offline" so it tries to reconnect but navigator.online is still true.

image

@Mahboobeh-binary Mahboobeh-binary changed the title navigator.onLine still true when turning off WiFi or Turn airplane mode on in mobile devices navigator.onLine still true when turning off WiFi or turn airplane mode on in mobile devices when it try to reconnect. Dec 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant