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 object

  • POSTS - subscription to changes of post objects in the community

  • COMMENTS - subscription to changes of comment objects in the community

  • POST and COMMENTS - subscription to changes of post and posts comments in the community

  • STORY 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 object

  • COMMENTS - 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 object

  • POSTS - subscription to changes of post objects in the user feed

  • COMMENTS - subscription to changes of comment objects in the user feed

  • POST 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 follows

  • MY_FOLLOWING - subscription to changes related users that follows current user

STORY Topic

  • subscription to changes related to specific story.

Last updated