Anchorage API reference
    Preparing search index...

    Interface DurableObjectRunnerState

    Structural subset of DurableObjectState — the shape DurableObjectRunner reads from. id.name (run-identity recovery off the DO's own idFromName address) and storage (owner-recovery records and alarms) are always touched; the Hibernatable-WebSocket members are OPTIONAL so node/vitest stubs that set only id.name/storage still satisfy the type and the per-run WS stream route can guard on their presence (absent ⇒ the non-WS 426 fallback).

    interface DurableObjectRunnerState {
        id: { name?: string };
        storage: DurableKeyValueStorage;
        acceptWebSocket?(ws: WebSocketLike, tags?: string[]): void;
        getWebSockets?(tag?: string): WebSocketLike[];
        waitUntil?(promise: Promise<unknown>): void;
    }
    Index

    Properties

    id: { name?: string }

    Methods