Setu-TS
    Preparing search index...

    Type Alias WebSocketGuardDecision

    WebSocketGuardDecision: true | { status: number }

    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.

    0.3.0