sendMessage( )


Sends a chat message from a site visitor.

The sendMessage() function returns a Promise that is resolved when the message is sent.

Currently only chat messages containing text can be sent programatically.

Method Declaration
Copy
Method Parameters
messageInfoMessageInfoRequired

An object representing the message to be sent.

Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?