interface DurableObjectWebSocketPair
Since 0.2.0

A created WebSocketPair.

The client half travels back to the caller inside the 101 response; the server half stays with the Durable Object, which hands it to state.acceptWebSocket.

Properties

Handed back to the connecting replica in the 101 response.

Retained by the Durable Object and accepted for hibernation.

Usage

import { type DurableObjectWebSocketPair } from "cloudflare-plugin/src/index.ts";