feat!: add stun discovery

This commit is contained in:
2026-02-14 16:17:22 -08:00
parent 3cac99c24c
commit a022c18ff9
10 changed files with 985 additions and 34 deletions

View File

@@ -67,7 +67,7 @@ pub async fn peers(
update = peer_rx.recv() => {
match update {
Ok(peer_update) => {
let json = serde_json::to_string(&peer_update.peer)
let json = serde_json::to_string(&PeerMessage::PeerUpdate { peer: peer_update.peer.clone() })
.unwrap_or_else(|_| "{}".to_string());
if session.text(json).await.is_err() {
break;