Repository navigation
Release Candidate 4: Connection Management and Contact List
Pre-release
Pre-release
New Features
Connection Management API
Applications can now explicitly manage peer connection priorities using libp2p's BasicConnMgr:
addPeers(peerIds): Protect and tag peer connections to ensure they remain activeremovePeers(peerIds): Remove protection and priority from peer connections
Contact List UI (Demo)
The demo application now includes a contact list feature:
- Manage protected peer connections through an intuitive modal interface
- Add/remove peer IDs with validation
- Session-only persistence (contacts cleared on browser close)
- Visual feedback for protected connections
Technical Details
Connection Protection: Prevents the connection manager from closing specific peer connections, ensuring they remain active even during connection pruning.
Connection Tagging: Assigns priority values (100) to protected peers, allowing the connection manager to make informed decisions about which connections to maintain.
Use Cases:
- Maintain connections to critical relay nodes
- Ensure application-specific peers stay connected
- Control peer connections in testing scenarios
- Prioritize connections to frequently-used peers
What's Changed
- Add
addPeers()andremovePeers()methods to TypeScript client library - Implement connection management in Go backend (protocol, handlers, peer operations)
- Add unit tests for connection management functionality
- Create contact list UI in demo application with modal interface
- Update all documentation (specs, design, API reference, developer guide, user manual)
Full Changelog
Commit: f3e998f - Add connection management and contact list feature
🤖 Generated with Claude Code