attachPresence

fun attachPresence(presence: Presence, isRealtime: Boolean? = null): Deferred<OperationResult>

attach attaches the given presence counter to this client. It tells the server that this client will track the presence count.

Parameters

presence

The presence counter to attach.

isRealtime

If true (default), starts watching for presence changes in realtime. If false, uses manual sync mode where you must call syncPresence to refresh the presence count.