onMessageReceived

abstract fun onMessageReceived(room: ChatRoom, message: ChatMessage)

Called after receiving chat room message. The message can be sent by any of the users in the room, including the current user.

Parameters

room

ChatRoom instance

message

Received message