addMessageArrivedListener

fun Conversation.addMessageArrivedListener(listener: MessageChangedListener)

Adds a listener for new messages arriving from the server.

This is an alternative to using the messageArrivedFlow for developers who prefer callback-based APIs over Kotlin's Flow API.

Parameters

listener

The listener to add.

See also