namespace XGame.Framework.Network.Web { /// /// Reference html5 WebSocket ReadyState Properties /// Indicates the state of a WebSocket connection. /// /// /// The values of this enumeration 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 has /// been 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 close method has /// been invoked. /// Closing = 2, /// /// Equivalent to numeric value 3. Indicates that the connection has /// been closed or could not be established. /// Closed = 3 } }