deleted logs and WebRTC issue
Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
33
README.md
33
README.md
@@ -136,6 +136,7 @@ Once a node is running, you can use these commands:
|
||||
- `send <message>` - Send a message through the ring
|
||||
- `info` - Show network information
|
||||
- `peers` - List connected peers
|
||||
- `connections` - Show persistent connection status
|
||||
- `help` - Show available commands
|
||||
- `quit` - Exit the node
|
||||
|
||||
@@ -319,3 +320,35 @@ MIT License - see LICENSE file for details.
|
||||
- [Distributed Systems](https://en.wikipedia.org/wiki/Distributed_computing)
|
||||
- [WebRTC Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API)
|
||||
- [Consensus Algorithms](https://en.wikipedia.org/wiki/Consensus_(computer_science))
|
||||
|
||||
### Connection Persistence
|
||||
|
||||
The Ring Network now includes connection persistence features:
|
||||
|
||||
#### Persistent Connection Management
|
||||
- **Automatic Connection Maintenance**: Nodes automatically maintain persistent WebRTC connections with other nodes
|
||||
- **Heartbeat System**: Regular heartbeat messages keep connections alive and detect failures
|
||||
- **Connection Monitoring**: Built-in monitoring of connection health and status
|
||||
- **Automatic Reconnection**: Failed connections are automatically retried with exponential backoff
|
||||
|
||||
#### Connection Status
|
||||
Use the `connections` command to view:
|
||||
- Total active connections
|
||||
- Persistent connection count
|
||||
- Connection health status
|
||||
- Last seen timestamps for each peer
|
||||
- Reconnection attempt counts
|
||||
|
||||
#### Bootstrap Connections
|
||||
When joining via a bootstrap node:
|
||||
- Initial WebSocket connection for joining the network
|
||||
- Automatic establishment of persistent WebRTC connection
|
||||
- Bootstrap node maintains connection with new nodes
|
||||
- Connection health monitoring and automatic recovery
|
||||
|
||||
#### Features
|
||||
- ✅ **Heartbeat Messages**: 30-second intervals to maintain connections
|
||||
- ✅ **Connection Health Checks**: Monitor connection state every 30 seconds
|
||||
- ✅ **Automatic Reconnection**: Up to 3 attempts before giving up
|
||||
- ✅ **Connection Status Monitoring**: Real-time connection status display
|
||||
- ✅ **Graceful Shutdown**: Proper cleanup of connections and intervals
|
||||
|
||||
Referencia en una nueva incidencia
Block a user