实时进料反应-getstream-io

问题描述 投票:0回答:1

我正在使用getstream.io实现一个Facebook /链接式供稿。 Feed结构如下:

I have two feed groups;
     1. user (flat feed)
     2. timeline (flat feed)

Every user has an own user feed(user:userId) and a timeline feed(timeline:userId). 
timeline:userId follows user:userId

[当用户在user:userId上发布帖子时,相应的关注者将获得其timeline:userId供稿的实时更新。该部分正常工作。

但是,当用户对某条帖子做出反应(例如,赞)时,其他用户(在其时间线上有相同帖子的那些用户)不会获得有关该反应的任何实时更新。

所以我如何使用getstream.io实现这一点?

feed getstream-io
1个回答
0
投票

这是一项缺少的功能,目前正在实施中。

现在,在添加反应时,您可以添加targetFeeds属性,该属性将在其他列出的引用了正在创建的反应的提要上创建活动。由于活动已添加到某些Feed中,因此它将触发实时更新。在客户端,您可以处理此更新,并根据需要忽略特殊活动。

© www.soinside.com 2019 - 2024. All rights reserved.