实时数据推送开启成功但过一会就提示失败不支持是什么原因呢?
//监听用户数据begin
const db = wx.cloud.database()
this.watcher = db.collection('kejie')
// 按 progress 降序
.orderBy('time', 'desc')
// 取按 orderBy 排序之后的前 100 个
.limit(100)
.where({
//_id: db.command.in(ids)
date: '2024-12-24'
})
.watch({
onChange: function (snapshot) {
console.log('AAAAAAAAAAAAA快照')
console.log(snapshot)
console.log('docs\'s changed events', snapshot.docChanges)
console.log('query result snapshot after the event', snapshot.docs)
console.log('is init data', snapshot.type === 'init')
},
onError: function (err) {
console.log('AAAAAAAAAAAAAerr')
console.error('the watch closed because of error', err)
}
})
//监听用户数据end
报错: [worker] reportRealtimeAction:fail not support [图片] 官方方案链接: https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/guide/database/realtime.html#%E7%9B%91%E5%90%AC 没查到合适的资料,有知道如何解决的不