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
| Parameter | Type |
|---|---|
reason | GraphorinCloseReason |
Returns
number