Skip to main content

build_update_payload

Function build_update_payload 

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

JSON shape that gets broadcast as the data payload of a waveobj:update WS event. Matches the shape of the MuxObjUpdate struct in crates/srv/src/backend/obj.rs so the frontend’s existing updateMuxObject handler accepts it without changes.