Skip to content
This repository was archived by the owner on Dec 3, 2021. It is now read-only.
This repository was 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

@Mahboobeh-binary

Description

@Mahboobeh-binary

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions