Skip to main content

protocol_of

Function protocol_of 

Source
pub fn protocol_of(json: &str) -> Option<u16>
Expand description

The relay protocol a first message json carries, read loosely before the message is decoded (#95): a newer client’s message may not decode here, and it still says what to upgrade.