Topic subscriptions do not replace Live Objects & Collections. Use subscriptions to tell the SDK which event streams matter now, then render from the live data APIs.
Platform Surface
Topic Lifecycle
When to Subscribe
Subscription Discipline
Subscribe from the visible model
Subscribe from the visible model
Topic APIs usually require an SDK model object such as
AmityCommunity, AmityPost, AmityComment, AmityUser, or AmitySubChannel. Fetch or observe the model first, then subscribe while that model is visible.Prefer broader feed topics for feed screens
Prefer broader feed topics for feed screens
A community feed usually needs one community post-and-comment topic, not a separate topic for every post row. Use post or comment topics for focused detail screens.
Pair every subscribe with cleanup
Pair every subscribe with cleanup
Unsubscribe when the screen is dismissed, the component unmounts, or the observed model changes. Logout also tears down the SDK session, but UI-level cleanup keeps each screen’s ownership clear.
Render from live data
Render from live data
A topic subscription activates event delivery. Your UI should still read from the SDK live object or live collection so cache updates, loading state, and error handling stay consistent.
Related Topics
Social Real-time Events
Subscribe to community, post, comment, user, follow, and story topics.
Chat Real-time Events
Subscribe to subchannel topics for chat thread updates.
Live Objects & Collections
Observe SDK-managed live data after subscribing to the event streams your UI needs.