WebSocketReadyState
public enum WebSocketReadyState : Int, CustomStringConvertible
The WebSocketReadyState enum is used by the readyState property to describe the status of the WebSocket connection.
-
The connection is not yet open.
Declaration
Swift
case Connecting = 0
-
The connection is open and ready to communicate.
Declaration
Swift
case Open = 1
-
The connection is in the process of closing.
Declaration
Swift
case Closing = 2
-
The connection is closed or couldn’t be opened.
Declaration
Swift
case Closed = 3
-
Returns a string that represents the ReadyState value.
Declaration
Swift
public var description : String