kkrpc
    Preparing search index...

    Interface IframeTransportOptions

    Options shared by iframe parent and child transports.

    interface IframeTransportOptions {
        handshakeTimeoutMs?: number;
        onReady?: () => void;
        sourceWindow?: WindowLike;
        targetOrigin?: string;
    }
    Index

    Properties

    handshakeTimeoutMs?: number

    Maximum time to keep retrying the child→parent MessagePort handshake before giving up. On timeout the retry loop stops and onClose fires with an error. Defaults to 30000ms. Only applies to the MessageChannel handshake path.

    onReady?: () => void

    Callback invoked when the MessagePort handshake completes.

    sourceWindow?: WindowLike

    Source window to subscribe on. Defaults to globalThis.

    targetOrigin?: string

    Allowed peer origin, or * for any origin.