changeConnection static method

Future<void> changeConnection(
  1. bool value
)

Implementation

static Future<void> changeConnection(bool value) async {
  if (i._connected == value) return;
  i._connected = value;
  if (!value) {
    i._subscriptionsCancel();
    return;
  }
  await reload();
  resubscribes();
}