Social Realtime Events
A topic is a distinct path that must be constructed for each model to which you wish to subscribe in real-time. The SDK provides helper methods to create these topics for each model type. Each topic encompasses an events enum, which developers can select to subscribe to based on their business context and interests.
To subscribe to updates from a community or any content created within that community, the user must have the 'Member' status in that community. Once the user leaves the community, they will no longer receive real-time events.
Community Topic
COMMUNITY
- subscription to changes in the community objectPOSTS
- subscription to changes of post objects in the communityCOMMENTS
- subscription to changes of comment objects in the communityPOST and COMMENTS
- subscription to changes of posts and posts comments in the communitySTORY and COMMENTS
- subscription to changes of story and story comments in the community
The default value is COMMUNITY
Post Topic
POST
- subscription to changes of the post objectCOMMENTS
- subscription to changes of comment objects on the post
The default value is POST
Comment Topic
COMMENT
- subscription to changes in the comment object
User Topic
USER
- subscription to changes in the user objectPOSTS
- subscription to changes of post objects in the user feedCOMMENTS
- subscription to changes of comment objects in the user feedPOST and COMMENTS
- subscription to changes of post and comment objects in the user feed
The default value is USER
Follow Topic
MY_FOLLOWERS
- subscription to changes related to users that the current user followsMY_FOLLOWING
- subscription to changes related to users that follow current user
STORY Topic
Subscription to changes related to specific stories.
Last updated
Was this helpful?