Skip to main content

sendMessage(message);

Call this method to send a message in the chat room.

JavaScript

sdk.sendMessage("message");

sendMessage(options)

Parameter NameDescriptionTypeRequired
messagemessage that you want to send in the chat roomStringYes

Example

The code snippet below sends the message "Hello world" to the chat room.

JavaScript

sdk.sendMessage("Hello world");

Response

This method provides no response