pub fn websocket_server_check_handshake<P: IsA<Message>>( msg: &P, origin: Option<&str>, protocols: &[&str], ) -> Result<(), Error>