useRoomExp(params?): Object
The ejection date is derived from room or token configuration: eject_after_elapsed, eject_at_room_exp, and exp. The optional onCountdown callback fires every second with the remaining hours, minutes, and seconds.
Parameters (optional)
When
onCountdown is set and the room is configured to eject the local participant at a given time, onCountdown will be called every second with an object parameter with keys hours, minutes and seconds.Return value
An object with the following properties:The date when the local participant will be automatically ejected from the meeting.