send Message
Sends a message to the specified room.
This function checks the message limit, validates input, and checks permissions based on user level and co-host responsibilities.
Example:
val options = SendMessageOptions(
member = "JohnDoe",
islevel = "2",
coHostResponsibility = listOf(CoHostResponsibility(name = "chat", value = true)),
coHost = "JaneDoe",
chatSetting = "allow",
message = "Hello, world!",
roomName = "Room123",
messagesLength = 50,
receivers = listOf("UserA", "UserB"),
group = true,
sender = "JohnDoe",
socket = socketInstance
)
sendMessage(options)Content copied to clipboard