Interface Network

The network API.

Remarks


- Available since v2.21.0.

interface Network {
    estimator: NetworkEstimator;
    online: boolean;
    addEventListener<TType>(type, listener): void;
    addRequestInterceptor(interceptor): void;
    addResponseInterceptor(interceptor): void;
    removeEventListener<TType>(type, listener): void;
    removeRequestInterceptor(interceptor): void;
    removeResponseInterceptor(interceptor): void;
    setEstimator(estimator): void;
}

Hierarchy (view full)

Properties

estimator: NetworkEstimator

Returns the active MeasurableNetworkEstimator. An internal implementation is provided by default.

online: boolean

Whether the stream is online.

Methods