Skip to main content

conversationMessage

When a conversation message is sent this event is triggered

JavaScript
frame1.on("conversationMessage", (message) => {
console.log("conversationMessage", message);
});

Properties

PropertiesDescriptionType
_ididString
conversationconversationIdString
messagemessageString
useruser ObjectString
createddate and time when the message was sentString
JSON Sample Response
{
"_id": "632a3936f0357f1c648791f2",
"conversation": "63289b4bf0357f1c648791e8",
"message": "hi user I am admin",
"user": {
"_id": "63233015c3aa3508a4c8fc34",
"username": "dasdas",
"claimed": true,
"verified": true,
"customer": "631794a83671700c713b1ce5",
"email": "support@deadsimplechat.com",
"parentCustomerAccount": "631794a83671700c713b1ce5",
"created": "2022-09-15T14:00:53.180Z",
"updated": "2022-09-20T21:43:01.442Z",
"__v": 0,
"webSocketId": "hPehXIksLFMO4Cv_AAAm"
},
"created": "2022-09-20T22:05:42.260Z",
"__v": 0
}