Skip to main content

decode_with_observer

Function decode_with_observer 

Source
pub fn decode_with_observer(
    bytes: &[u8],
) -> Result<(Packet<'_>, Option<&str>), PacketError>
Expand description

Decode either the unchanged legacy packet or its explicit observer extension. The legacy decoder itself continues to reject version two.