`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](https://user-images.githubusercontent.com/3080372/50413937-98188000-0827-11e9-94b2-5188f91e51e5.png)
navigator.onLineis still true when turning off WiFi or turn airplane mode on in mobile devices when try toreconnect.It happens because websocket connection closes before browser detect you went "offline" so it tries to reconnect but
navigator.onlineis still true.image