Skip to content

connectSurface

function connectSurface(): Promise<SurfaceConnection>;

App-side client for an embedded-surface entrypoint. Runs in the provider’s nested iframe and talks to the shell via window.top (its parent is the host consumer, not the shell); the handshake carries a shell-minted surfaceId so the shell can bind it before a window exists.

Promise<SurfaceConnection>