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.

  • channel Channel name.
  • uid User ID
  • localProxyIp Reserved parameter, currently not supported.
  • elapsed Time 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;