Chat / iOS
Chat iOS v4
Chat iOS
Chat
iOS
Home
/
Chat
/
iOS
This is the new Docs for Chat SDK v4 for iOS. To see the previous Docs, click here.

Event delegate

Sendbird's Chat SDK for iOS provides three types of event delegates for client apps: channel delegate, user event delegate, and connection delegate. Through the channel delegate and user event delegate, the Sendbird server notifies client apps in the foreground for events that are happening in relation to channels and users. Through the connection event delegate, the Sendbird server detects changes in the connection status of a client app. When the client app is disconnected from the server, the SDK tries to reconnect to the server and notifies the client app of the result through the connection event delegate.

The Chat SDK communicates with our server through persistent WebSocket connections and multi-thread processing, receiving callbacks of asynchronous channel, user, and connection events through delegates in real-time. This interaction enables you to track the events you desire and implement your own chat features associated with those events.


Functionalities by event delegates

The following is a list of event delegate functionalities that our Chat SDK provides.

Managing a channel event delegate

FunctionalityDescriptionOpen channelGroup channel

Add or remove a channel event delegate

Adds or removes an event delegate that receives information about events happening in channels from the Sendbird server.

Managing a user event delegate

FunctionalityDescriptionOpen channelGroup channel

Add or remove a user event delegate

Adds or removes an event delegate that receives information about events related to users connected to the Sendbird server.

Managing a connection event delegate

FunctionalityDescriptionOpen channelGroup channel

Add or remove a connection event delegate

Adds or removes an event delegate that receives information about changes related to the Sendbird server connection status.