announceLeave method
- Keyset? keyset,
- String? using,
- Set<
String> channels = const {}, - Set<
String> channelGroups = const {},
inherited
Announce in channels
and channelGroups
that a device linked to the UUID in the keyset left.
Implementation
Future<LeaveResult> announceLeave({
Keyset? keyset,
String? using,
Set<String> channels = const {},
Set<String> channelGroups = const {},
}) {
keyset ??= keysets[using];
Ensure(keyset).isNotNull('keyset');
return defaultFlow<LeaveParams, LeaveResult>(
keyset: keyset,
core: this,
params: LeaveParams(keyset,
channels: channels, channelGroups: channelGroups),
serialize: (object, [_]) => LeaveResult.fromJson(object));
}