type alias WebSocketGuardDecision
Since 0.3.0

The result of a route-scoped WebSocket upgrade guard.

Return true to accept the upgrade. Return the refusal object to reject it before the handshake with the supplied HTTP status, which the client sees as the upgrade response.

Definition

true | { readonly status: number; }

Usage

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