Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/protocol / close-codes / closeCodeFor

Function: closeCodeFor()

ts
function closeCodeFor(reason): number;

Defined in: close-codes.ts:47

Return the numeric close code for a Graphorin reason discriminator.

Parameters

ParameterType
reasonGraphorinCloseReason

Returns

number

Stable