pub fn protocol_of(json: &str) -> Option<u16>
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.
json