release

abstract suspend fun release(name: String)

Release the Room object if it exists. This method only releases the reference to the Room object from the Rooms instance and detaches the room from Ably. It does not unsubscribe to any events.

After calling this function, the room object is no-longer usable. If you wish to get the room object again, you must call Rooms.get.

Calling this function will abort any in-progress get calls for the same room.

Parameters

name

The ID of the room. Spec: CHA-RC1g, CHA-RC1g1