pub fn crdt_to_wire(value: &RuntimeValue) -> Option<Vec<u8>>Expand description
Encode a CRDT value for the relay wire: a JSON object mapping each Int field
to its value. A bare Int counter uses the empty field name. Nothing (and
any non-counter value) has nothing to publish. The format is browser-friendly
and field-addressable, so structs merge field-by-field on the other side.