Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/protocol / subprotocol / TICKET_SUBPROTOCOL_PREFIX

Variable: TICKET_SUBPROTOCOL_PREFIX

ts
const TICKET_SUBPROTOCOL_PREFIX: "ticket." = 'ticket.';

Defined in: subprotocol.ts:42

Prefix for the single-use ticket that browser clients attach to the Sec-WebSocket-Protocol header. The server's upgrade handler splits the comma-separated list, finds the first ticket.<value> token, and validates the value against the in-memory ticket store before granting the connection.

Stable