stopHeartbeat method

void stopHeartbeat()

Stop the presence heartbeat.

Call this when the app goes to background. The backend will mark the user as offline after the TTL expires.

Implementation

void stopHeartbeat() {
  _ensureInitialized();
  ChatLogger.debug('Stopping presence heartbeat');
  _registry.adapter.stopHeartbeat();
}