emit_client_singleton

Function emit_client_singleton 

Source
async fn emit_client_singleton(
    wstore: &Arc<WaveStore>,
    event_bus: &Arc<EventBus>,
    context: &'static str,
)
Expand description

Broadcast the singleton Client WaveObj. SrvWindowOpened / SrvWindowClosed mutate Client.windowids (per apply_srv_window_opened in persist_subscriber.rs:518) so renderers holding a pinned Client need to see the new windowids list — without this broadcast they’d render stale window membership until reload. Codex P2 on PR #861.

Client is a singleton — the first get_all::<Client>() row is THE client. Same lookup pattern persist_subscriber uses.