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