ConnectionHandler class

The 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.

Constructors

ConnectionHandler()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onConnected(String userId) → void
A callback for when SendbirdChat is connected.
onDisconnected(String userId) → void
A callback for when SendbirdChat is disconnected.
onReconnectFailed() → void
A callback for when reconnection is failed.
onReconnectStarted() → void
A callback for when SendbirdChat tries to reconnect.
onReconnectSucceeded() → void
A callback for when connection is reestablished.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited