mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-20 23:41:28 +02:00
The wasm client never runs the engine's session-warning flow, so linking the full sessionwatch package (timers, event composition) only bloats the binary. Put the watcher behind a sessionDeadlineWatcher interface and split the constructor by build tag: !js wires the real sessionwatch.Watcher, js gets a no-op stub that still mirrors the deadline into the status recorder (so the Status snapshot stays correct) but drops the timers. Removes the sessionwatch package from the wasm dependency graph.
528 B
528 B