WebsocketCloseCode

Pre-defined close codes that can be passed to method@WebsocketConnection.close or received from method@WebsocketConnection.get_close_code.

However, other codes are also allowed.

Entries

Link copied to clipboard

a normal, non-error close

Link copied to clipboard

the client/server is going away

Link copied to clipboard

a protocol error occurred

Link copied to clipboard

the endpoint received data of a type that it does not support.

Link copied to clipboard

reserved value indicating that no close code was present; must not be sent.

Link copied to clipboard

reserved value indicating that the connection was closed abnormally; must not be sent.

Link copied to clipboard

the endpoint received data that was invalid (eg, non-UTF-8 data in a text message).

Link copied to clipboard

generic error code indicating some sort of policy violation.

Link copied to clipboard

the endpoint received a message that is too big to process.

Link copied to clipboard

the client is closing the connection because the server failed to negotiate a required extension.

Link copied to clipboard

the server is closing the connection because it was unable to fulfill the request.

Link copied to clipboard

reserved value indicating that the TLS handshake failed; must not be sent.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val nativeValue: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.