current

abstract fun current(): OccupancyData?

Get the latest occupancy data received from realtime events.

Return

The latest occupancy data, or undefined if no realtime events have been received yet.

Throws

AblyException

If occupancy events are not enabled for this room.