update method
Implementation
@override
Future<void> update(
String topic, {
int? expiry,
Map<String, Namespace>? namespaces,
TransportType? transportType,
}) async {
checkInitialized();
SessionData? info = get(topic);
if (info == null) {
return;
}
if (expiry != null) {
info = info.copyWith(expiry: expiry);
}
if (namespaces != null) {
info = info.copyWith(namespaces: namespaces);
}
if (transportType != null) {
info = info.copyWith(transportType: transportType);
}
await set(topic, info);
}