kernl API
    Preparing search index...

    Interface DirectConnectionsOptions

    What the direct connections service needs from the shell.

    interface DirectConnectionsOptions {
        appletOf: (
            windowId: string,
        ) => Pick<AppletSummary, "publisher" | "identity" | "manifest"> | undefined;
        ask: (ask: Ask<"connection.direct">) => Promise<boolean>;
        createPeer?: (configuration: RTCConfiguration) => RTCPeerConnection;
        iceServers: () => readonly DirectIceServer[];
        identities: WindowIdentities;
        isGranted: (windowId: string) => boolean;
        pool: ApplesaucePool;
        relays: () => readonly string[];
    }
    Index
    appletOf: (
        windowId: string,
    ) => Pick<AppletSummary, "publisher" | "identity" | "manifest"> | undefined

    The verified applet a window runs, or undefined.

    ask: (ask: Ask<"connection.direct">) => Promise<boolean>

    Put the session to the person as a connection.direct ask; resolve true only on yes.

    createPeer?: (configuration: RTCConfiguration) => RTCPeerConnection

    Makes a peer connection; the page's RTCPeerConnection by default.

    iceServers: () => readonly DirectIceServer[]

    STUN and TURN servers that help connections through; read when a window first opens a session.

    identities: WindowIdentities
    isGranted: (windowId: string) => boolean

    Whether the person granted this window's applet direct connections, and has not blocked it.

    relays: () => readonly string[]

    Where people in a room find each other; read when a window first opens a session.