ConnectionHandler

Connection handler. This handler provides callbacks for automatically managed reconnection events.

SendbirdChat tries reconnection when the connection is lost. This handler can be used to track the reconnection state. To add or remove this handler, refer to SendbirdChat.addConnectionHandler and SendbirdChat.removeConnectionHandler.

Functions

Link copied to clipboard
abstract fun onConnected(userId: String)

A callback for when SendbirdChat is connected.

Link copied to clipboard
abstract fun onDisconnected(userId: String)

A callback for when SendbirdChat is disconnected.

Link copied to clipboard
abstract fun onReconnectFailed()

A callback for when reconnection is failed.

Link copied to clipboard
abstract fun onReconnectStarted()

A callback for when SendbirdChat tries to reconnect.

Link copied to clipboard
abstract fun onReconnectSucceeded()

A callback for when connection is reestablished.