Skip to content

OtherCloseCode

[Source]

A valid close status code without a named primitive.

Covers application-defined codes (3000-4999), IANA-registered codes without named primitives (1010, 1012-1014), and any future additions to the standard range. The raw code is preserved for application inspection.

class val OtherCloseCode is
  Stringable box

Implements


Constructors

create

[Source]

Create an OtherCloseCode wrapping the given numeric code.

new val create(
  code': U16 val)
: OtherCloseCode val^

Parameters

  • code': U16 val

Returns


Public Functions

code

[Source]

Returns the raw numeric close code.

fun box code()
: U16 val

Returns


string

[Source]

Returns a human-readable representation including the numeric code.

fun box string()
: String iso^

Returns