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
the client/server is going away
a protocol error occurred
the endpoint received data of a type that it does not support.
generic error code indicating some sort of policy violation.
the client is closing the connection because the server failed to negotiate a required extension.
the server is closing the connection because it was unable to fulfill the request.
reserved value indicating that the TLS handshake failed; must not be sent.
Functions
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.)
Returns an array containing the constants of this enum type, in the order they're declared.