pub fn serialize_server_message(
msg: &ServerMessage,
seq: Option<u64>,
ack: Option<u64>,
) -> Result<String, Error>Expand description
Serialize a server message, optionally wrapping in an envelope.
ยงErrors
Returns a serde_json::Error if the message cannot be serialized.