notifyChannelMessage

open fun notifyChannelMessage(channelItem: ChannelItem, channel: Channel)

Invoked when the user receives a new channel message in one of their channels.

This method is called when the connected user receives a new message in a channel, providing details about the received ChannelItem and the associated Channel. You can handle this event appropriately, such as updating UI elements or notifying the user.

Note: This method can be called when the application is launched or in push mode.

Parameters

channelItem

The ChannelItem instance representing the received message.

channel

The Channel instance representing the channel where the message was received.