Skip to content

connect

function connect(options?): Promise<Platform>;

Connect a top-level app to the platform shell. Performs the origin-validated handshake from inside the app’s iframe and resolves to a Platform client. Throws if not running inside the shell iframe; most apps call bootstrap (which falls back to standalone) rather than connect directly.

ConnectOptions = {}

Connect options, including the app’s AppContract.

Promise<Platform>

The connected Platform client.