CML
    Preparing search index...

    Type Alias CmcdTransportAdapter

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

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

    Methods

    Methods

    • Install the transport's interception hook. 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