onProxyConnected property
void Function(String channel, int uid, ProxyType proxyType, String localProxyIp, int elapsed)?
onProxyConnected
final
Callback for proxy connection status.
You can use this callback to monitor the SDK's connection status to the proxy. For example, when a user calls setCloudProxy to set the proxy and successfully joins a channel, the SDK triggers this callback to report the user ID, proxy type connected, and the time elapsed from calling joinChannel to triggering this callback.
channelChannel name.uidUser IDlocalProxyIpReserved parameter, currently not supported.elapsedTime elapsed (in milliseconds) from calling joinChannel to the SDK triggering this callback.
Implementation
final void Function(String channel, int uid, ProxyType proxyType,
String localProxyIp, int elapsed)? onProxyConnected;