[ Version ( since = "2.50" ) ]
public enum WebsocketCloseCode
Pre-defined close codes that can be passed to close or received
(However, other codes are also allowed.)
- NORMAL - a normal, non-error
- GOING_AWAY - the
client/server is going away
- PROTOCOL_ERROR - a
protocol error occurred
- UNSUPPORTED_DATA -
the endpoint received data of a type that it does not support.
- NO_STATUS - reserved value
indicating that no close code was present; must not be sent.
- ABNORMAL - reserved value
indicating that the connection was closed abnormally; must not be sent.
- BAD_DATA - the endpoint
received data that was invalid (eg, non-UTF-8 data in a text message).
- POLICY_VIOLATION -
generic error code indicating some sort of policy violation.
- TOO_BIG - the endpoint
received a message that is too big to process.
- NO_EXTENSION - the
client is closing the connection because the server failed to negotiate a required extension.
- SERVER_ERROR - the
server is closing the connection because it was unable to fulfill the request.
- TLS_HANDSHAKE -
reserved value indicating that the TLS handshake failed; must not be sent.