Skip to content

Graphorin API reference v0.15.1


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

Variable: TICKET_SUBPROTOCOL_PREFIX

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

Defined in: src/subprotocol.ts:42

Stable

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.