Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

WebSocketCloseStatus Enumeration

.NET Framework 4.5

Represents well known WebSocket close codes as defined in section 11.7 of the WebSocket protocol spec.

Namespace:  System.Net.WebSockets
Assembly:  System (in System.dll)
public enum WebSocketCloseStatus
Member nameDescription
EmptyNo error specified.
EndpointUnavailable(1001) Indicates an endpoint is being removed. Either the server or client will become unavailable.
InternalServerErrorThe connection will be closed by the server because of an error on the server.
InvalidMessageType(1003) The client or server is terminating the connection because it cannot accept the data type it received.
InvalidPayloadData(1007) The client or server is terminating the connection because it has received data inconsistent with the message type.
MandatoryExtension(1010) The client is terminating the connection because it expected the server to negotiate an extension.
MessageTooBig(1004) Reserved for future use.
NormalClosure(1000) The connection has closed after the request was fulfilled.
PolicyViolation(1008) The connection will be closed because an endpoint has received a message that violates its policy.
ProtocolError(1002) The client or server is terminating the connection because of a protocol error.

.NET Framework

Supported in: 4.5.1, 4.5

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.