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.
Parameters
Section titled “Parameters”options?
Section titled “options?”ConnectOptions = {}
Connect options, including the app’s AppContract.
Returns
Section titled “Returns”Promise<Platform>
The connected Platform client.