get

abstract suspend fun get(waitForSync: Boolean = true, clientId: String? = null, connectionId: String? = null): List<PresenceMember>

Method to get list of the current online users and returns the latest presence messages associated to it.

Return

list of the current online users

Parameters

waitForSync

when false, the current list of members is returned without waiting for a complete synchronization.

clientId

when provided, will filter array of members returned that match the provided clientId string.

connectionId

when provided, will filter array of members returned that match the provided connectionId.

Throws

AblyException

object which explains the error.