parse_client_message

Function parse_client_message 

Source
pub fn parse_client_message(
    json: &str,
) -> Result<(ClientMessage, Option<u64>, Option<u64>), Error>
Expand description

Parse a raw JSON message, handling both legacy and new formats.

Returns the parsed message and whether it was enveloped.

ยงErrors

Returns a serde_json::Error if the message cannot be parsed.