moqtap-session
Connection layer built on quinn.
What it does
Section titled “What it does”moqtap-session establishes QUIC connections, manages the MoQT control stream, and emits TraceEvent for every message.
use moqtap_session::{MoqSession, TlsConfig};
let session = MoqSession::connect( "https://relay.example.com/moq", TlsConfig::AcceptAny, DraftVersion::Draft14,).await?;
// Send a control messagesession.send_control(&msg).await?;
// Receive events via broadcast channellet mut rx = session.subscribe_events();while let Ok(event) = rx.recv().await { println!("{:?}", event);}Transport modes
Section titled “Transport modes”- WebTransport —
https://URLs, HTTP/3 over QUIC - Native QUIC —
moqt://URLs, raw QUIC
TLS configuration
Section titled “TLS configuration”TlsConfig::SystemTrust— use system certificate storeTlsConfig::AcceptAny— accept any certificate (development only)TlsConfig::CustomCa(path)— provide a PEM file