Skip to content

RuntimeHost

Nodepod API


Nodepod API / src / RuntimeHost

Defined in: src/host/types.ts:54

optional defaultHeadless?: boolean

Defined in: src/host/types.ts:57

When true, Nodepod.boot() applies headless defaults if headless is omitted.


kind: "node" | "browser"

Defined in: src/host/types.ts:55

canCreateWorkers(): boolean

Defined in: src/host/types.ts:58

boolean


optional createHttpIngress(opts): HttpIngress | null

Defined in: src/host/types.ts:67

CreateHttpIngressOptions

HttpIngress | null


createWorker(spec): HostWorker

Defined in: src/host/types.ts:59

WorkerSpec

HostWorker


optional disposeGlobalResources(): void

Defined in: src/host/types.ts:63

void


optional openSnapshotCache(opts): Promise<IDBSnapshotCache | null>

Defined in: src/host/types.ts:64

OpenSnapshotCacheOptions

Promise<IDBSnapshotCache | null>


optional probeProcessWorkerUrl(workerUrl?): Promise<string | null>

Defined in: src/host/types.ts:61

Probe/cache an external process-worker URL. Returns the URL if usable.

string

Promise<string | null>


optional revokeObjectUrl(url): void

Defined in: src/host/types.ts:62

string

void