stop method

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

Stops the hub and releases the endpoint.

Implementation

Future<void> stop({bool force = true}) async {
  _tunnelTls?.stop();
  _tunnelTls = null;
  // Stops the transport and then the service, which stops the broker.
  await _server?.stop(force: force);
  _server = null;
}