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.
Type Declaration
true
{status:number}
Readonlystatus: number
The HTTP status to answer with when refusing the upgrade.
The result of a route-scoped WebSocket upgrade guard.
Return
trueto 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.