DisconnectReason

public enum DisconnectReason : Equatable

Reason for disconnection state

  • Declaration

    Swift

    public static func == (lhs: DisconnectReason, rhs: DisconnectReason) -> Bool
  • Disconnected and not going to automatically reconnect This can either be the initial state or after disconnect() is called

    Declaration

    Swift

    case disconnected
  • Waiting to reconnect, either by timer (with given Date) or network state changes

    Declaration

    Swift

    case waitingToReconnect(lastError: Error?, atLatest: Date, retryCount: Int)