Skip to content

Graphorin API reference v0.15.1


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

Function: closeCodeFor()

ts
function closeCodeFor(reason): number;

Defined in: src/close-codes.ts:47

Stable

Return the numeric close code for a Graphorin reason discriminator.

Parameters

ParameterType
reasonGraphorinCloseReason

Returns

number