spawn_settings_watcher

Function spawn_settings_watcher 

Source
pub fn spawn_settings_watcher(
    config_watcher: Arc<ConfigWatcher>,
    event_bus: Arc<EventBus>,
) -> Option<RecommendedWatcher>
Expand description

Spawn a filesystem watcher that monitors settings.json and broadcasts config updates to all WebSocket clients on change.

Returns a handle to the watcher (must be held alive for the duration of the app).