monitor-api - v1.3.0
    Preparing search index...

    Interface INetworkCollector

    Public API exposed by the network collector.

    interface INetworkCollector {
        onRequest: SSignal<NetworkEntry | null>;
        snapshot: SSignal<NetworkSnapshot>;
        clearLog(): void;
        destroy(): void;
        setFilter(fn: (url: string) => boolean): void;
        start(): void;
        stop(): void;
    }
    Index

    Properties

    onRequest: SSignal<NetworkEntry | null>

    Signal set to the latest recorded request, or null before any request is recorded.

    snapshot: SSignal<NetworkSnapshot>

    Signal containing retained requests and rolling statistics.

    Methods

    • Replaces the URL filter used for future requests.

      Parameters

      • fn: (url: string) => boolean

      Returns void

    • Patches fetch and XMLHttpRequest when running in a browser.

      Returns void