leave
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
Ably Exception
object which explains the error.