Skip to content

Implement online/offline detection in browsers #3195

@matheus23

Description

@matheus23

We currently disable network change detection in wasm32-unknown-unknown.

Instead, we should subscribe to the browser window's online and offline events.

For that, we simply implement online/offline event handling in netwatch.

Then we can remove network_monitor-related cfgs in magicsock::Actor::run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions