Skip to main content

connectPlayground

Callable

  • connectPlayground(iframe: HTMLIFrameElement, options?: { loadRemote?: string }): Promise<PlaygroundClient>

  • @deprecated

    Use startPlayground instead.


    Parameters

    • iframe: HTMLIFrameElement

      Any iframe with Playground’s remote.html loaded.

    • optionaloptions: { loadRemote?: string }

      Optional. If loadRemote is set, the iframe’s src will be set to that URL. In other words, use this option if your iframe doesn’t have remote.html already loaded.

    Returns Promise<PlaygroundClient>