Setu-TS
    Preparing search index...

    Interface IDurableObjectWebSocket

    A WebSocket held by a Durable Object, as the hibernation API hands it back.

    Deliberately narrower than the client-side socket below: a DO reaches its accepted sockets only through state.getWebSockets(), and drives them with send/close. It never adds listeners, because hibernation delivers incoming messages to the class's webSocketMessage handler instead.

    0.2.0

    interface IDurableObjectWebSocket {
        close(code?: number, reason?: string): void;
        send(message: string | ArrayBuffer): void;
    }
    Index