@beeworks/imsdk / message / syncNotifications
syncNotifications()
syncNotifications(
begin,end,limit?,anchor?,reversed?):Promise<AbstractMessage[]>
同步通知消息
拉取通知消息,并对返回的消息进行解析。
Parameters
begin
number
消息开始序号
end
number
消息结束序号
limit?
number
限制数量(可选)
anchor?
number
锚点(可选)
reversed?
boolean
是否倒序,默认为true
Returns
Promise<AbstractMessage[]>
Promise<AbstractMessage[]> - 解析后的消息列表
Example
typescript
const notifications = await syncNotifications(100, 200);1
