trackContactPresence method
void
trackContactPresence(
- PeerId contact,
- PeerId serverPeerId
Track a contact's online/offline presence
Subscribes to the presence topic of the server hosting this contact. Use contactPresenceChanges to receive state change events.
Implementation
void trackContactPresence(PeerId contact, PeerId serverPeerId) {
if (_presenceTracker == null) {
_logger.warning('Presence tracking unavailable - PubSub not initialized');
return;
}
_presenceTracker!.trackContact(contact, serverPeerId);
}