interface WebSocketUpgradeIntent
Since 0.3.0

The WebSocket upgrade intent the kernel terminal handler brands onto an IRequest under UPGRADE_INTENT, for the HTTP adapter to act on once the middleware pipeline has run without short-circuiting.

Properties

readonly
sink: import("./services/websocket.ts").WebSocketEventSink

The sink the adapter binds its native socket events into.

readonly
optional
protocol: string | undefined

The negotiated subprotocol to echo back, when one was selected.

Usage

import { type WebSocketUpgradeIntent } from "common/src/index.ts";