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