close method

Future<void> close()

Terminates all active connections. If a client remains unclosed, the Dart process may not terminate.

Implementation

Future<void> close() async {
  if (_objectManagerSubscription != null) {
    await _objectManagerSubscription!.cancel();
    _objectManagerSubscription = null;
  }
  if (_closeBus) {
    await _bus.close();
  }
}