Sends a message to the specified room.
Will throw an error if the message count limit is exceeded.
Will throw an error if the message, sender, or receivers are not valid.
Will throw an error if the user is not allowed to send a message in the event room.
launchMessages({ updateIsMessagesModalVisible: (visible) => console.log("Modal visibility:", visible), isMessagesModalVisible: false,}); Copy
launchMessages({ updateIsMessagesModalVisible: (visible) => console.log("Modal visibility:", visible), isMessagesModalVisible: false,});
The options for sending the message.
A promise that resolves when the message is sent.
Sends a message to the specified room.
Throws
Will throw an error if the message count limit is exceeded.
Throws
Will throw an error if the message, sender, or receivers are not valid.
Throws
Will throw an error if the user is not allowed to send a message in the event room.
Example