ConnectionStatus

@objc(ZDKConnectionStatus)
public enum ConnectionStatus : Int, CustomStringConvertible

Represents different states of theChatSession

  • Indicating the client is trying to connect to the backend.

    Declaration

    Swift

    case connecting
  • The ChatSession has connected to the backend and is ready to send/receive messages.

    Declaration

    Swift

    case connected
  • The ChatSession has disconnected. Can be caused by network connection, or a user ending the session with ChatSession.disconnect()

    Declaration

    Swift

    case disconnected
  • The ChatSession is trying to reconnect to a chat that was already in session.

    Declaration

    Swift

    case reconnecting
  • Failed to reconnect to the web-socket

    Declaration

    Swift

    case failed
  • The internet connectivity appears to be offline

    Declaration

    Swift

    case unreachable
  • Declaration

    Swift

    public var description: String { get }