Anchorage API reference
    Preparing search index...

    The subset of a DurableObjectStub the hub topology uses. The raw-Request overload is what lets a WebSocket UPGRADE forward through the stub unchanged; the string/init overload carries the /internal/event JSON POST.

    interface HubStubLike {
        fetch(request: Request): Promise<Response>;
        fetch(
            url: string,
            init?: {
                body?: string;
                headers?: Record<string, string>;
                method?: string;
            },
        ): Promise<Response>;
    }
    Index

    Methods

    Methods