The runtime-native socket, normalized to the two operations the framework
needs. Implemented by each HTTP adapter's upgrader over its platform socket
(Deno.upgradeWebSocket's WebSocket, a ws socket on Node, Bun's
ServerWebSocket, the server half of a Workers WebSocketPair).
readonly
readyState: WebSocketReadyState
Current lifecycle state of the underlying socket.
send(data: string | Uint8Array): void
Sends a frame to the peer. A string is sent as a text frame, a
Uint8Array as a binary frame.