Anchorage API reference
    Preparing search index...
    interface ThreadTopology {
        forward(
            context: ThreadPrincipalContext,
            threadId: string,
            request: Request,
        ): Promise<Response>;
        send(
            context: ThreadPrincipalContext,
            threadId: string,
            path: string,
            init?: ThreadRequestInit,
        ): Promise<Response>;
    }
    Index

    Methods

    Methods

    • Forward a client Request (e.g. a verified WebSocket upgrade) to a thread DO, with the principal header overwritten from the authenticated context. Same validation 404 as send. Use this instead of stub.fetch(request).

      Parameters

      Returns Promise<Response>