interface RawUpgradeSocket
Since 0.2.0

The raw socket handed to a Node upgrade listener, narrowed to what a refusal needs.

Methods

write(data: string): void

Writes bytes to the socket.

destroy(): void

Closes the socket.

Usage

import { type RawUpgradeSocket } from "runtime/src/index.ts";