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 of 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 post and comment objects 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 of the comment object
User Topic
USER
- subscription to changes of 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 users that current user followsMY_FOLLOWING
- subscription to changes related users that follows current user
Last updated
Was this helpful?