发送单聊已读回执
目标 ID
消息唯一标识,可在 Message 中获取
消息的发送时间,可通过 Message 中 sendTime 获取
Optional
发送单聊已读回执,用于标记已读消息 实现已读功能步骤:
sendReadReceiptMessage
单聊消息回执示例:
const targetId = 'targetId';const messageUId = 'BS4O-QEBR-VJM6-9GPP';const timestamp = 1632728573423;const readReceiptRes = await RongIMLib.sendReadReceiptMessage(targetId, messageUId, timestamp);console.info('单聊消息回执:', readReceiptRes) Copy
const targetId = 'targetId';const messageUId = 'BS4O-QEBR-VJM6-9GPP';const timestamp = 1632728573423;const readReceiptRes = await RongIMLib.sendReadReceiptMessage(targetId, messageUId, timestamp);console.info('单聊消息回执:', readReceiptRes)
发送单聊已读回执