Skip to content

RuntimeHost

Nodepod API


Nodepod API / src / RuntimeHost

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

optional defaultHeadless?: boolean

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

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


kind: "node" | "browser"

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

canCreateWorkers(): boolean

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

boolean


optional createHttpIngress(opts): HttpIngress | null

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

CreateHttpIngressOptions

HttpIngress | null


createWorker(spec): HostWorker

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

WorkerSpec

HostWorker


optional disposeGlobalResources(): void

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

void


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

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

OpenSnapshotCacheOptions

Promise<IDBSnapshotCache | null>


optional openWorkspaceStore(id): Promise<WorkspaceStore | null>

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

Default store for persistence when the caller doesn’t pass one.

string

Promise<WorkspaceStore | null>


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

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

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:63

string

void