detachClient method

void detachClient(
  1. IBaseSession baseSession
)

Implementation

void detachClient(IBaseSession baseSession) {
  String realm = baseSession.realm();
  if (!_realms.containsKey(realm)) {
    throw Exception("cannot detach client from non-existent realm $realm");
  }

  _realms[realm]?.detachClient(baseSession);
}