ReadyState
public enum ReadyState : String, Equatable
Enum values representing the states of an EventSource
-
The
EventSourceclient has not been started yet.Declaration
Swift
case raw -
The
EventSourceclient is attempting to make a connection.Declaration
Swift
case connecting -
The
EventSourceclient is active and listening for events.Declaration
Swift
case open -
The connection has been closed or has failed, and the
EventSourcewill attempt to reconnect.Declaration
Swift
case closed -
The connection has been permanently closed and the
EventSourcenot reconnect.Declaration
Swift
case shutdown
View on GitHub
ReadyState Enumeration Reference