SwarmConn constructor
SwarmConn({})
Creates a new SwarmConn
Implementation
SwarmConn({
required this.id,
required this.conn,
required PeerId localPeer,
required PeerId remotePeer,
required this.direction,
required this.swarm,
required ConnManagementScope managementScope,
}) :
_localPeerId = localPeer,
_remotePeerId = remotePeer,
_managementScope = managementScope,
_openedTime = DateTime.now() { // Initialize openedTime when SwarmConn is created
// Initialize health monitoring
_healthMonitor = ConnectionHealthMonitor();
_setupHealthMonitoring();
}