Skip to main content

prove_moql_admission

Function prove_moql_admission 

Source
pub async fn prove_moql_admission(
    conn: &Connection,
    proof: &MoqlAdmissionProof,
    client_carrier_node_id: [u8; 32],
    timeout: Duration,
) -> Result<(), MoqlAdmissionError>
Expand description

Run the client half of the admission exchange on conn, consuming its first bi stream. On success the connection is ready to be wrapped as a web_transport_iroh::Session for the moq handshake; on failure the server has closed (or will close) the connection and the caller MUST NOT proceed.