From e15c1d9b89623835fb80f1b92c1b6016c1327c7b Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sat, 4 Jul 2026 23:39:41 -0700 Subject: [PATCH] Network Type Transition Optimization Nucleic-Session: 40F8C53A-F001-423A-8607-EAE181DBE14B Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Models/RemoteStore.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index cd398ce..3590c45 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -159,6 +159,9 @@ final class RemoteStore: ObservableObject { private let identity = IdentityStore.loadOrCreateIdentity() let discovery = LANDiscovery() + /// Proactive network-path awareness (shared across every host connection): flips transports the + /// instant Wi-Fi drops or returns, instead of waiting for a dead LAN socket to time out. + let pathMonitor = NetworkPathMonitor() /// One live connection per paired Mac (mesh P3 multiplexer). All connected at once; the flat /// `sessions`/`connectivity`/`capabilities`/… above mirror the *active* one (`activeHostID`), so /// switching hosts is instant (no reconnect). Empty in demo mode (demo seeds state directly).