receive Room Messages
Retrieves messages from a specified room using a socket connection.
This function emits a socket event to request messages for a specific room and updates the message list when a response is received.
Parameters
options
The options containing socket, room name, and update callback
Example:
val options = ReceiveRoomMessagesOptions(
socket = socketManager,
roomName = "Room1",
updateMessages = { messages ->
}
)
receiveRoomMessages(options)Content copied to clipboard