function setUpgradeIntent
Since 0.3.0
setUpgradeIntent(): void

Brands a request with a WebSocket upgrade intent for the HTTP adapter to act on after the framework handler returns.

Called by the kernel terminal handler once the pipeline has run without short-circuiting and the upgrade router has accepted.

Parameters

request: IRequest

The framework request the adapter built

The sink and negotiated subprotocol

Return Type

void

Usage

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