interface WsServerLike
Since 0.2.0

A ws WebSocketServer in noServer mode, narrowed to what this adapter drives.

Methods

handleUpgrade(
request: unknown,
socket: unknown,
head: unknown,
callback: (ws: WsSocketLike) => void
): void

Completes the handshake over an already-accepted TCP connection.

close(): void

Shuts the server down.

Usage

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