setLocalProxyConfig static method

Future<void> setLocalProxyConfig(
  1. List<ZegoProxyInfo> proxyList,
  2. bool enable
)

Set local proxy config.

Available since: 3.1.0 Description: If you need to use the local proxy feature, please call this function to complete the configuration. When to call: Must be set before calling createEngine to take effect, otherwise it will fail. Restrictions: After createEngine, can not change the proxy. Caution: None.

  • proxyList proxy info.
  • enable enable proxy or not.

Implementation

static Future<void> setLocalProxyConfig(
    List<ZegoProxyInfo> proxyList, bool enable) async {
  return await ZegoExpressImpl.setLocalProxyConfig(proxyList, enable);
}