Text Chat Feature With Room Class
Room class offers text chat functionalities.
Diarkis Room supports text chat functions.
The text chat data will be stored and managed per room on the server memory.
In order to persist chat message data, you must send the chat data from rooms to external database or storage. Read here to learn how to send text chat data to external storage.
Sending Text Chat Messages
Receive Text Chat Messages
You receive text chat messages via the event listener callback. The callback will pass an instance of RoomChatData that contains the sender of the text chat, timestamp, and its text message.
Retrieve The Chat Log
When joining a room, you may need to retrieve all text chat messages that were sent before you joined the room.
Here is how to do just that.
Last updated