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: 0x02000327 RID: 807
|
|
[Token(Token = "0x2000327")]
|
|
public enum WebSocketCloseStatus
|
|
{
|
|
/// <summary>(1000) The connection has closed after the request was fulfilled.</summary>
|
|
// Token: 0x04000DDA RID: 3546
|
|
[Token(Token = "0x4000DDA")]
|
|
NormalClosure = 1000,
|
|
/// <summary>(1001) Indicates an endpoint is being removed. Either the server or client will become unavailable.</summary>
|
|
// Token: 0x04000DDB RID: 3547
|
|
[Token(Token = "0x4000DDB")]
|
|
EndpointUnavailable,
|
|
/// <summary>(1002) The client or server is terminating the connection because of a protocol error.</summary>
|
|
// Token: 0x04000DDC RID: 3548
|
|
[Token(Token = "0x4000DDC")]
|
|
ProtocolError,
|
|
/// <summary>(1003) The client or server is terminating the connection because it cannot accept the data type it received.</summary>
|
|
// Token: 0x04000DDD RID: 3549
|
|
[Token(Token = "0x4000DDD")]
|
|
InvalidMessageType,
|
|
/// <summary>No error specified.</summary>
|
|
// Token: 0x04000DDE RID: 3550
|
|
[Token(Token = "0x4000DDE")]
|
|
Empty = 1005,
|
|
/// <summary>(1007) The client or server is terminating the connection because it has received data inconsistent with the message type.</summary>
|
|
// Token: 0x04000DDF RID: 3551
|
|
[Token(Token = "0x4000DDF")]
|
|
InvalidPayloadData = 1007,
|
|
/// <summary>(1008) The connection will be closed because an endpoint has received a message that violates its policy.</summary>
|
|
// Token: 0x04000DE0 RID: 3552
|
|
[Token(Token = "0x4000DE0")]
|
|
PolicyViolation,
|
|
/// <summary>(1004) Reserved for future use.</summary>
|
|
// Token: 0x04000DE1 RID: 3553
|
|
[Token(Token = "0x4000DE1")]
|
|
MessageTooBig,
|
|
/// <summary>(1010) The client is terminating the connection because it expected the server to negotiate an extension.</summary>
|
|
// Token: 0x04000DE2 RID: 3554
|
|
[Token(Token = "0x4000DE2")]
|
|
MandatoryExtension,
|
|
/// <summary>The connection will be closed by the server because of an error on the server.</summary>
|
|
// Token: 0x04000DE3 RID: 3555
|
|
[Token(Token = "0x4000DE3")]
|
|
InternalServerError
|
|
}
|
|
}
|