onTokenWillExpire property

EmptyCallbackType? onTokenWillExpire
getter/setter pair

The callback will be triggered 30 seconds before the Token expires.

In this case, you should call RTCRoom.updateToken to update the Token, otherwise the user would be removed from the room and not be able to continue the call.

Implementation

EmptyCallbackType? onTokenWillExpire;