onRequestToken property
void Function(RtcConnection connection)?
onRequestToken
final
Occurs when the token expires.
When the token expires during a call, the SDK triggers this callback to remind the app to renew the token.Once you receive this callback, generate a new token on your app server, and call joinChannel 2/2
to rejoin the channel.
connection
The connection information. See RtcConnection .
Implementation
final void Function(RtcConnection connection)? onRequestToken;