SDKsWASM
Unsubscribe from online status
Stop subscribing to the online status of selected users.
await openimsdk.unsubscribeUsersStatus(userIDs);After the Promise succeeds, data contains the UserOnlineState[] affected by this unsubscription. The caller normally does not need it to refresh state. Instead, remove the requested userID values from the local subscription set and status cache. See Subscribe to online status for field descriptions.
Unsubscribe when the page changes, search results change, the user signs out, or the status state layer is destroyed and those subscriptions are no longer needed.
Was this page helpful?