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
ChatSessionhas connected to the backend and is ready to send/receive messages.Declaration
Swift
case connected -
The
ChatSessionhas disconnected. Can be caused by network connection, or a user ending the session withChatSession.disconnect()Declaration
Swift
case disconnected -
The
ChatSessionis 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 }
Install in Dash
ConnectionStatus Enumeration Reference