Skip to main content

channelMessage

When message is sent in a channel this event is triggered.

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

Properties

PropertiesDescriptionType
_idid of the userString
likeslikes arrayArray
createdwhen the channel message was sentString
useruser who sent the channel messageObject
channelchannelId where the message was sentString
messagemessageString

User

PropertiesDescriptionType
_idid of the userString
usernameusername of the userString
claimedthe user profile is claimed or not (to be deprecated)Boolean
verifiedthe user profile is verified or not (to be deprecated)Boolean
customercustomer idString
emailuser emailString
parentCustomerAccountcustomer idString
createdwhen the message was createdString
updatedwhen the message was updatedString
JSON Sample Response
{
"_id": "632a3cb9f0357f1c648791f4",
"likes": [],
"created": "2022-09-20T22:20:41.416Z",
"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-20T22:19:00.592Z",
"__v": 0,
"webSocketId": "0ieC-OWuXmVM6q4tAAAp"
},
"channel": "6325e6bef0357f1c648791a4",
"message": "hi"
}