announceHeartbeat method
- Keyset? keyset,
- String? using,
- Set<
String> channels = const {}, - Set<
String> channelGroups = const {}, - int? heartbeat,
inherited
Anounce in channels
and channelGroups
that a device linked to the UUID in the keyset is alive.
Implementation
Future<HeartbeatResult> announceHeartbeat(
{Keyset? keyset,
String? using,
Set<String> channels = const {},
Set<String> channelGroups = const {},
int? heartbeat}) {
keyset ??= keysets[using];
Ensure(keyset).isNotNull('keyset');
return defaultFlow<HeartbeatParams, HeartbeatResult>(
keyset: keyset,
core: this,
params: HeartbeatParams(keyset,
channels: channels,
channelGroups: channelGroups,
heartbeat: heartbeat),
serialize: (object, [_]) => HeartbeatResult.fromJson(object));
}