onProxyConnected property
void Function(String channel, int uid, ProxyType proxyType, String localProxyIp, int elapsed)?
onProxyConnected
final
Reports the proxy connection state.
You can use this callback to listen for the state of the SDK connecting to a proxy. For example, when a user calls setCloudProxy and joins a channel successfully, the SDK triggers this callback to report the user ID, the proxy type connected, and the time elapsed fromthe user calling joinChannel 1/2
until this callback is triggered.
-
channel
The channel name. -
uid
The user ID. -
localProxyIp
Reserved for future use. -
elapsed
The time elapsed (ms) from the user calling joinChannel1/2
until this callback is triggered.
Implementation
final void Function(String channel, int uid, ProxyType proxyType,
String localProxyIp, int elapsed)? onProxyConnected;