|
|
|
@ -1,4 +1,4 @@
|
|
|
|
#region MIT License
|
|
|
|
#region License
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* CloseStatusCode.cs
|
|
|
|
* CloseStatusCode.cs
|
|
|
|
*
|
|
|
|
*
|
|
|
|
@ -49,59 +49,59 @@ namespace WebSocketSharp {
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1000. Indicates a normal closure.
|
|
|
|
/// Equivalent to close status 1000. Indicates a normal closure.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
NORMAL = 1000,
|
|
|
|
NORMAL = 1000,
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1001. Indicates that an endpoint is "going away".
|
|
|
|
/// Equivalent to close status 1001. Indicates that an endpoint is "going away".
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
AWAY = 1001,
|
|
|
|
AWAY = 1001,
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1002. Indicates that an endpoint is terminating the connection
|
|
|
|
/// Equivalent to close status 1002. Indicates that an endpoint is terminating the connection
|
|
|
|
/// due to a protocol error.
|
|
|
|
/// due to a protocol error.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
PROTOCOL_ERROR = 1002,
|
|
|
|
PROTOCOL_ERROR = 1002,
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1003. Indicates that an endpoint is terminating the connection
|
|
|
|
/// Equivalent to close status 1003. Indicates that an endpoint is terminating the connection
|
|
|
|
/// because it has received a type of data it cannot accept.
|
|
|
|
/// because it has received a type of data it cannot accept.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
INCORRECT_DATA = 1003,
|
|
|
|
INCORRECT_DATA = 1003,
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1004. Still undefined. Reserved value.
|
|
|
|
/// Equivalent to close status 1004. Still undefined. Reserved value.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
UNDEFINED = 1004,
|
|
|
|
UNDEFINED = 1004,
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1005. Indicates that no status code was actually present. Reserved value.
|
|
|
|
/// Equivalent to close status 1005. Indicates that no status code was actually present. Reserved value.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
NO_STATUS_CODE = 1005,
|
|
|
|
NO_STATUS_CODE = 1005,
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1006. Indicates that the connection was closed abnormally. Reserved value.
|
|
|
|
/// Equivalent to close status 1006. Indicates that the connection was closed abnormally. Reserved value.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
ABNORMAL = 1006,
|
|
|
|
ABNORMAL = 1006,
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1007. Indicates that an endpoint is terminating the connection
|
|
|
|
/// Equivalent to close status 1007. Indicates that an endpoint is terminating the connection
|
|
|
|
/// because it has received data within a message that was not consistent with the type of the message.
|
|
|
|
/// because it has received data within a message that was not consistent with the type of the message.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
INCONSISTENT_DATA = 1007,
|
|
|
|
INCONSISTENT_DATA = 1007,
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1008. Indicates that an endpoint is terminating the connection
|
|
|
|
/// Equivalent to close status 1008. Indicates that an endpoint is terminating the connection
|
|
|
|
/// because it has received a message that violates its policy.
|
|
|
|
/// because it has received a message that violates its policy.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
POLICY_VIOLATION = 1008,
|
|
|
|
POLICY_VIOLATION = 1008,
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1009. Indicates that an endpoint is terminating the connection
|
|
|
|
/// Equivalent to close status 1009. Indicates that an endpoint is terminating the connection
|
|
|
|
/// because it has received a message that is too big for it to process.
|
|
|
|
/// because it has received a message that is too big for it to process.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
TOO_BIG = 1009,
|
|
|
|
TOO_BIG = 1009,
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1010. Indicates that an endpoint (client) is terminating the connection
|
|
|
|
/// Equivalent to close status 1010. Indicates that an endpoint (client) is terminating the connection
|
|
|
|
/// because it has expected the server to negotiate one or more extension, but the server didn't return
|
|
|
|
/// because it has expected the server to negotiate one or more extension, but the server didn't return
|
|
|
|
/// them in the response message of the WebSocket handshake.
|
|
|
|
/// them in the response message of the WebSocket handshake.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
IGNORE_EXTENSION = 1010,
|
|
|
|
IGNORE_EXTENSION = 1010,
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1011. Indicates that a server is terminating the connection because it encountered
|
|
|
|
/// Equivalent to close status 1011. Indicates that a server is terminating the connection because it encountered
|
|
|
|
/// an unexpected condition that prevented it from fulfilling the request.
|
|
|
|
/// an unexpected condition that prevented it from fulfilling the request.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
SERVER_ERROR = 1011,
|
|
|
|
SERVER_ERROR = 1011,
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Equivalent to close status 1015. Indicates that the connection was closed due to a failure to perform
|
|
|
|
/// Equivalent to close status 1015. Indicates that the connection was closed due to a failure to perform
|
|
|
|
/// a TLS handshake. Reserved value.
|
|
|
|
/// a TLS handshake. Reserved value.
|
|
|
|
|