/ SDKs / .NET
SDKs
Chat SDKs .NET v4
Chat SDKs .NET
Chat SDKs
.NET
Version 4

Retrieve the latest information on participants

Copy link

To retrieve the latest and updated information on each online participant in an open channel, you need to create a new query instance using the SbParticipantListQuery instance, then call the LoadNextPage() method consecutively to retrieve the latest information.

You can also retrieve the latest information on participants at the application level. Similar to retrieving a list of users, you need to create a new query instance using SbApplicationUserListQuery then call LoadNextPage() until you retrieve the latest information.

You can get the participant's current connection status by checking the SbUserConnectionStatus of each SbUser object in the returned list. Acceptable values of the SbUserConnectionStatus property are Offline and Online.

Connection status values

Copy link
ValueDescription

SbUserConnectionStatus.Offline

The user isn't connected to the Sendbird server.

SbUserConnectionStatus.Online

The user is connected to the Sendbird server.

Note: If you need to keep track of the connection status of some users in real time, we recommend that you periodically call the LoadNextPage() method of a SbApplicationUserListQuery instance after specifying its UserIdsFilter filter, perhaps in intervals of one minute or more.