pub fn encode_wave_osc_bytes(
osc_num: &str,
data: &[u8],
) -> Result<Vec<u8>, String>Expand description
Encode bytes as a AgentMux OSC escape sequence.
Format: ESC ]
If the payload contains control characters, it’s base64 encoded. Otherwise, sent as raw JSON.