onMessage( )


Deprecated

This method is deprecated.

Deprecated. This event is deprecated. For site development and building apps with Blocks, use the following Velo Inbox Events instead:

Learn how to migrate your wix-chat-backend events.

An event that fires when a chat message is sent to or from the business.

The onMessage() event handler runs when a backend chat message is sent to or from the business. The received SendMessageEvent object contains information about the message that was sent.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventSendMessageEventRequired

The message data.

Did this help?