stop method

Future<void> stop({
  1. bool force = true,
})

Stops the hub and releases the endpoint.

Implementation

Future<void> stop({bool force = true}) async {
  broker.stop();
  await _endpoint?.close(force: force);
  _endpoint = null;
}