pub fn check_hello(
hello: &Hello,
expected_kind: PeerKind,
expected_token: Option<&str>,
) -> Result<(), ErrorCode>Expand description
Validates a handshake from the other side. Targets call this with the
client hello (expecting PeerKind::Devtools) and vice versa.