connectPlayground
Callable
Parameters
iframe: HTMLIFrameElement
Any iframe with Playground’s remote.html loaded.
optionaloptions: { loadRemote?: string }
Optional. If
loadRemote
is set, the iframe’ssrc
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>
Use
startPlayground
instead.