53 lines
2.2 KiB
C#
53 lines
2.2 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net.WebSockets
|
|
{
|
|
/// <summary>Represents well known WebSocket close codes as defined in section 11.7 of the WebSocket protocol spec.</summary>
|
|
// Token: 0x0200032B RID: 811
|
|
[Token(Token = "0x200032B")]
|
|
public enum WebSocketCloseStatus
|
|
{
|
|
/// <summary>(1000) The connection has closed after the request was fulfilled.</summary>
|
|
// Token: 0x04000DE7 RID: 3559
|
|
[Token(Token = "0x4000DE7")]
|
|
NormalClosure = 1000,
|
|
/// <summary>(1001) Indicates an endpoint is being removed. Either the server or client will become unavailable.</summary>
|
|
// Token: 0x04000DE8 RID: 3560
|
|
[Token(Token = "0x4000DE8")]
|
|
EndpointUnavailable,
|
|
/// <summary>(1002) The client or server is terminating the connection because of a protocol error.</summary>
|
|
// Token: 0x04000DE9 RID: 3561
|
|
[Token(Token = "0x4000DE9")]
|
|
ProtocolError,
|
|
/// <summary>(1003) The client or server is terminating the connection because it cannot accept the data type it received.</summary>
|
|
// Token: 0x04000DEA RID: 3562
|
|
[Token(Token = "0x4000DEA")]
|
|
InvalidMessageType,
|
|
/// <summary>No error specified.</summary>
|
|
// Token: 0x04000DEB RID: 3563
|
|
[Token(Token = "0x4000DEB")]
|
|
Empty = 1005,
|
|
/// <summary>(1007) The client or server is terminating the connection because it has received data inconsistent with the message type.</summary>
|
|
// Token: 0x04000DEC RID: 3564
|
|
[Token(Token = "0x4000DEC")]
|
|
InvalidPayloadData = 1007,
|
|
/// <summary>(1008) The connection will be closed because an endpoint has received a message that violates its policy.</summary>
|
|
// Token: 0x04000DED RID: 3565
|
|
[Token(Token = "0x4000DED")]
|
|
PolicyViolation,
|
|
/// <summary>(1004) Reserved for future use.</summary>
|
|
// Token: 0x04000DEE RID: 3566
|
|
[Token(Token = "0x4000DEE")]
|
|
MessageTooBig,
|
|
/// <summary>(1010) The client is terminating the connection because it expected the server to negotiate an extension.</summary>
|
|
// Token: 0x04000DEF RID: 3567
|
|
[Token(Token = "0x4000DEF")]
|
|
MandatoryExtension,
|
|
/// <summary>The connection will be closed by the server because of an error on the server.</summary>
|
|
// Token: 0x04000DF0 RID: 3568
|
|
[Token(Token = "0x4000DF0")]
|
|
InternalServerError
|
|
}
|
|
}
|