update

abstract suspend fun update(data: PresenceData? = null)

Method to update room presence, will emit an update event to all subscribers. If the user is not present, it will be treated as a join event.

Parameters

data

The users data, a JSON serializable object that will be sent to all subscribers.

Throws

AblyException

object which explains the error.