CML
    Preparing search index...

    Type Alias CmcdTransportAdapter

    Pluggable transport-interception contract for CmcdReportRecorder. The default implementations, createXhrTransport and createFetchTransport, patch global XMLHttpRequest and fetch. Custom adapters can wrap other transports, for example undici or a player-internal HTTP client.

    type CmcdTransportAdapter = {
        attach(deliver: CmcdRequestDeliver): () => void;
    }
    Index

    Methods

    Methods

    • Install interception on the transport. Called once per recorder attach(). The adapter must normalize each outgoing request to HttpRequest (reading the body to a synchronous value if necessary) and invoke deliver. Returns a detach function that restores the original transport.

      Parameters

      Returns () => void