Sends a message in the chat room.
Parameters:
Name | Mandatory | Type | Description |
---|---|---|---|
text | YES | STRING | Text to send |
Returns:
Type | Description |
---|---|
JS Promise | A Javascript Promise that return the message id that has been sent |
Example:
contact.sendMessage("Hello world!").then( function(msgid){ console.log("Message sent. ID [" + msgid + "]"); } );