function upgradeIntentOf
Since 0.3.0
upgradeIntentOf(request: IRequest): WebSocketUpgradeIntent | undefined

Reads the WebSocket upgrade intent an adapter should act on, or undefined when the pipeline did not ask for an upgrade.

Parameters

request: IRequest

The framework request the adapter passed to the handler

Return Type

The intent, or undefined when none was recorded

Usage

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