WebSocketReadyState
@objc
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 { get }