freeAllResources method
Implementation
@override
Future<bool> freeAllResources([bool throwOnFailure = false]) async {
try {
await disconnectFromRelays();
await streamsController.close();
nostrRegistry.clearAllRegistries();
return true;
} catch (e) {
if (throwOnFailure) {
rethrow;
}
return false;
}
}