Skip to main content

check_internet_connection

Function check_internet_connection 

Source
pub async fn check_internet_connection() -> bool
Expand description

Check if there is an active internet connection.

Native clients can afford a preflight connectivity check. Browser/wasm clients should skip it and rely on the real request, otherwise the check itself becomes a separate cross-origin failure surface.