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().

Hierarchy

  • ConnectionHandlerParams
    • ConnectionHandler

Constructors

Properties

onConnected?: ((userId: string) => void) = noop

A callback for when SendbirdChat is connected.

onDisconnected?: ((userId: string) => void) = noop

A callback for when SendbirdChat is disconnected.

onReconnectFailed?: (() => void) = noop

A callback for when reconnection is failed.

onReconnectStarted?: (() => void) = noop

A callback for when SendbirdChat tries to reconnect.

onReconnectSucceeded?: (() => void) = noop

A callback for when connection is reestablished.