Skip to content

BootstrapConfig

Configuration for bootstrap. App and Surface are the framework’s component types (e.g. Angular Type<unknown>); the SDK never imports a UI framework, so the caller supplies the mount callbacks.

App

Surface

app: ComponentLoader<App>;

Loads the top-level app component; invoked only on an app entrypoint.


contract: AppContract;

The app’s handshake contract. See AppContract.


optional fallback?: () => Platform;

Stand-in Platform when there’s no shell (standalone). Omit to surface the connect error.

Platform


optional surfaces?: Record<string, ComponentLoader<Surface>>;

Surface loaders keyed by the contract’s surface name; only the matched one is invoked.

mountApp(app, platform): void | Promise<unknown>;

Put the app on screen for this framework (the return, e.g. Angular’s ApplicationRef, is awaited).

App

Platform

void | Promise<unknown>


optional mountSurface(surface, conn): void | Promise<unknown>;

Put a matched surface on screen; required only for apps that provide surfaces.

Surface

SurfaceConnection

void | Promise<unknown>