datadog-ux-utils Documentation - v1.0.0
    Preparing search index...

    Type Alias NetworkInfo

    Snapshot of client network conditions, normalized across browsers.

    type NetworkInfo = {
        online: boolean;
        type?: string;
        effectiveType?: string;
        downlinkMbps?: number;
        rttMs?: number;
        saveData?: boolean;
    }
    Index

    Properties

    online: boolean

    true if the browser reports "online" (fallback-only behavior if Network Info API is missing).

    type?: string

    e.g., "wifi" | "cellular" | "ethernet" | "none" (normalized best-effort).

    effectiveType?: string

    e.g., "slow-2g" | "2g" | "3g" | "4g" (per Network Info API).

    downlinkMbps?: number

    Approx downstream bandwidth in megabits/sec when available.

    rttMs?: number

    Round-trip time estimate in ms when available.

    saveData?: boolean

    Whether the user enabled "Data Saver" / reduced data mode.