Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/protocol / subprotocol / parseTicketSubprotocol
Function: parseTicketSubprotocol()
ts
function parseTicketSubprotocol(clientList): string | undefined;Defined in: subprotocol.ts:67
Extract the ticket value from a single comma-separated client list (e.g. 'graphorin.protocol.v1, ticket.abc-123'). Returns undefined if no ticket.* token is present. Whitespace around each comma-separated token is ignored.
Parameters
| Parameter | Type |
|---|---|
clientList | string | readonly string[] |
Returns
string | undefined