chatMessageError
Emitted when a chat action is rejected
This event is emitted when a chat action, such as sending a message or requesting history, is rejected.
JavaScript
meeting.on("chatMessageError", function(error) {
});
Properties
error is an object that contains the following properties:
| Property | Description |
|---|---|
| context | Which action failed, e.g. "sendChatMessage" or "getChatHistory" |
| message | Human-readable reason, e.g. "You are sending messages too quickly" (rate limit), "Chat is disabled for this participant", "Recipient is offline", "Recipient is not in this meeting", "Invalid file reference" |
Example
Use this event to surface a toast or error message to the user:
JavaScript
meeting.on("chatMessageError", function(error) {
showToast(error.message);
});