Skip to content

Graphorin API reference v0.1.0


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

Function: formatTicketSubprotocol()

ts
function formatTicketSubprotocol(ticket): string;

Defined in: subprotocol.ts:52

Format a ticket value as a Sec-WebSocket-Protocol token suitable for browser clients (which cannot attach an Authorization header on the WebSocket upgrade). The companion server helper is parseTicketSubprotocol.

Parameters

ParameterType
ticketstring

Returns

string

Stable