stop method
Stops the hub and releases the endpoint.
Implementation
Future<void> stop({bool force = true}) async {
broker.stop();
_mainTls?.stop();
_mainTls = null;
_tunnelTls?.stop();
_tunnelTls = null;
await _endpoint?.close(force: force);
_endpoint = null;
}