goOffline function

void goOffline()

Drops the connection to the backend.

Registered OnDisconnect actions run on the server when this takes effect, which is what makes them observable without pulling the power.

Implementation

void goOffline() {
  if (fdbDbGoOffline() != 0) {
    throw StateError('goOffline before the Firebase app was initialized');
  }
}