Member Junction
    Preparing search index...
    interface WidgetControllerDeps {
        createAuth: (
            apiUrl: string | null,
            refresh: (() => Promise<string>) | null,
        ) => WidgetAuthAdapter;
        createGuestSessions: (
            apiUrl: string,
            widgetKey: string,
        ) => WidgetGuestSessionSource;
        createResumeStore: (scope: string) => WidgetResumeStore;
        loadChannelClasses?: (
            clientPluginClasses: readonly string[],
        ) => Promise<void>;
        now?: () => number;
        pageClose: WidgetPageClose;
        runtime: RealtimeSessionRuntime;
    }
    Index

    Properties

    createAuth: (
        apiUrl: string | null,
        refresh: (() => Promise<string>) | null,
    ) => WidgetAuthAdapter

    Builds the auth adapter for an api-url and (when the credential can be renewed) a renewer.

    createGuestSessions: (
        apiUrl: string,
        widgetKey: string,
    ) => WidgetGuestSessionSource
    createResumeStore: (scope: string) => WidgetResumeStore
    loadChannelClasses?: (clientPluginClasses: readonly string[]) => Promise<void>

    Loads channel code on demand, given the ClientPluginClass keys of the channels a session could use. The one-script element supplies it so a heavy channel (the Interactive Component channel's React runtime) downloads only when it is in scope. Absent, every channel the page can name is already in the bundle.

    now?: () => number
    pageClose: WidgetPageClose