Skip to content

Mark Messages as Read



wss message_read

The message_read request marks messages as read on the server and notifies other online users about this.

NameTypeDescription
cidstringConversation ID where messages are located
idsarray[string]Array of messages that need to be marked
{
"id": "RequestId",
"success": true
}
{
"request": {
"message_read": {
"cid": "63077ad836b78c3d82af0812",
"ids": ["63480e68f4794709f802a2fa", "63077ad836b78c3d82af0866"]
},
"id": "RequestId"
}
}

Then, all the users whose messages we read will receive the following message:

{
"message_read": {
"cid": "63077ad836b78c3d82af0812",
"ids": ["63480e68f4794709f802a2fa", "63077ad836b78c3d82af0866"],
"from": "634ec51c0b65918393dca5bf"
}
}