Skip to main content

Interface: IMiniappHandle

Defined in: src/types/runtime.ts:171

Handle returned by IRuntime.load. Represents a miniapp that has been loaded (iframe created, manifest resolved) but not yet bootstrapped.

Call bootstrap() to inject context and start the miniapp, or unload() to discard it.

Properties​

sid​

sid: string

Defined in: src/types/runtime.ts:179

Session ID for this miniapp instance

Methods​

bootstrap()​

bootstrap(context?): Promise<IMiniappControls>

Defined in: src/types/runtime.ts:173

Bootstrap the miniapp with context

Parameters​

context?​

Partial<IBootstrapContext>

Returns​

Promise<IMiniappControls>


unload()​

unload(): void

Defined in: src/types/runtime.ts:176

Unload the miniapp and clean up

Returns​

void