build_update_payload

Function build_update_payload 

Source
fn build_update_payload(
    updatetype: &str,
    otype: &str,
    oid: &str,
    obj: Option<Value>,
) -> Value
Expand description

JSON shape that gets broadcast as the data payload of a waveobj:update WS event. Matches the shape of WaveObjUpdate in agentmux-srv/src/backend/obj.rs:465-474 so the frontend’s existing updateWaveObject handler accepts it without changes.