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