ConnectionDelegate
public protocol ConnectionDelegate
Represents a delegate to receive connection relates events
-
Invoked when reconnection starts.
Declaration
Swift
optional func didStartReconnection()
-
Invoked when reconnection is succeeded.
Declaration
Swift
optional func didSucceedReconnection()
-
Invoked when reconnection is failed.
Declaration
Swift
optional func didFailReconnection()
-
Invoked when connected.
Declaration
Swift
optional func didConnect(userId: String)
-
Invoked when disconnected.
Declaration
Swift
optional func didDisconnect(userId: String)