namespace SocketHttpListener
{
///
/// Contains the values of the state of the WebSocket connection.
///
///
/// The values of the state are defined in
/// The WebSocket
/// API.
///
public enum WebSocketState : ushort
{
///
/// Equivalent to numeric value 0.
/// Indicates that the connection has not yet been established.
///
Connecting = 0,
///
/// Equivalent to numeric value 1.
/// Indicates that the connection is established and the communication is possible.
///
Open = 1,
///
/// Equivalent to numeric value 2.
/// Indicates that the connection is going through the closing handshake or
/// the WebSocket.Close method has been invoked.
///
Closing = 2,
///
/// Equivalent to numeric value 3.
/// Indicates that the connection has been closed or couldn't be opened.
///
Closed = 3
}
}