notifyActivity method

  1. @override
void notifyActivity()
override

Notifies that activity has occurred on this transport connection, potentially due to activity on a multiplexed stream over it. This can be used by multiplexers to inform the connection manager.

Implementation

@override
void notifyActivity() {
  // If using the legacy ConnManager, notify it.
  // This assumes _legacyConnManager is the correct one to notify for activity tracking.
  // If a different ConnManager instance is responsible for the idle timeout of this
  // specific TCPConnection (e.g., one from a higher layer like Swarm or BasicHost),
  // then that's the one that should be called.
  // For now, using _legacyConnManager if available.
  if (!_closed && _legacyConnManager != null) {
    _legacyConnManager!.recordActivity(this);
  }
}