You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.0 KiB

#if !NET20
using System;
namespace Apewer.WebSocket
{
internal static class StatusCodes
{
public const ushort NormalClosure = 1000;
public const ushort GoingAway = 1001;
public const ushort ProtocolError = 1002;
public const ushort UnsupportedDataType = 1003;
public const ushort NoStatusReceived = 1005;
public const ushort AbnormalClosure = 1006;
public const ushort InvalidFramePayloadData = 1007;
public const ushort PolicyViolation = 1008;
public const ushort MessageTooBig = 1009;
public const ushort MandatoryExt = 1010;
public const ushort InternalServerError = 1011;
public const ushort TLSHandshake = 1015;
public const ushort ApplicationError = 3000;
public static ushort[] ValidCloseCodes = new[]{
NormalClosure, GoingAway, ProtocolError, UnsupportedDataType,
InvalidFramePayloadData, PolicyViolation, MessageTooBig,
MandatoryExt, InternalServerError
};
}
}
#endif