setActive method

Future<void> setActive(
  1. {bool sendNonza = true}
)

Tells the server to stop optimizing traffic. If sendNonza is false, then no nonza is sent. This is useful for setting up the CSI manager for Bind2.

Implementation

Future<void> setActive({bool sendNonza = true}) async {
  _isActive = true;

  if (sendNonza) {
    final attrs = getAttributes();
    if (await isSupported()) {
      attrs.sendNonza(CSIActiveNonza());
    }
  }
}