Skip to main content

sendChatMessage(text)

Send a chat message to everyone

caution

join() must be called before calling this method

Sends a text message to every participant in the meeting. Others receive it through the chatMessageReceived event.

JavaScript
meeting.sendChatMessage("Hello everyone 👋");

The message is delivered raw, so any chat UI must escape the text before inserting it into the DOM (the built-in SDK UI already does this for you).

This method throws if the meeting has not been joined, or if the socket is disconnected or reconnecting.

info

Each participant is limited to 20 messages every 10 seconds. When the limit is exceeded the server replies with a chatMessageError event: "You are sending messages too quickly".