ReadyState

public enum ReadyState : String, Equatable

Enum values representing the states of an EventSource

  • raw

    The EventSource client has not been started yet.

    Declaration

    Swift

    case raw
  • The EventSource client is attempting to make a connection.

    Declaration

    Swift

    case connecting
  • The EventSource client is active and listening for events.

    Declaration

    Swift

    case open
  • The connection has been closed or has failed, and the EventSource will attempt to reconnect.

    Declaration

    Swift

    case closed
  • The connection has been permanently closed and the EventSource not reconnect.

    Declaration

    Swift

    case shutdown