feat(nodes): show live network throughput (#7249)

Comparing current traffic across nodes meant opening each node's history chart. The heartbeat already carries every node's upload and download rate.

Show both rates in a stacked column of the Nodes table, between Memory and Xray Version, and in the mobile detail dialog, which now follows heartbeat updates. A measured idle link reads 0 B/s; a disabled, offline or transitive node, a peer too old to report throughput, and a sample older than 30 seconds read as a dash. The sample's age is computed on the master and anchored to when the browser received it, so a skewed browser clock does not blank the column.

The probe now records a missing or invalid direction as unavailable where it used to store zero, so such peers also stop adding zero points to the history chart.

Fixes #7238
This commit is contained in:
Hamed
2026-11-29 17:44:53 +03:30
committed by GitHub
parent 5d2d068484
commit 4954b032f1
32 changed files with 356 additions and 19 deletions
+1
View File
@@ -1215,6 +1215,7 @@ export const EXAMPLES: Record<string, unknown> = {
"enable": true,
"guid": "node-guid",
"hasApiToken": true,
"heartbeatAgeMillis": 1250,
"id": 1,
"inboundCount": 3,
"inboundSyncMode": "all",