leave

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

Method to leave room presence, will emit a leave event to all subscribers. If the user is not present, it will be treated as a no-op.

Parameters

data

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

Throws

AblyException

object which explains the error.