Skip to content

Connecting to Relays

moqtap supports two transport modes:

  • WebTransport (HTTPS) — https://relay.example.com/moq
  • Native QUICmoqt://relay.example.com

Both use QUIC under the hood via the quinn library.

QUIC mandates TLS 1.3 — there is no plaintext mode.

Works for relays with valid certificates (e.g., Cloudflare-hosted relays).

Configures a custom ServerCertVerifier that accepts everything. Use this for development relays with self-signed certificates. Equivalent to --insecure in curl.

Provide a PEM file for relays using a private Certificate Authority.

Select the MoQT draft version to negotiate. moqtap currently supports:

  • draft-14 (0xff00000e) — default

The version is negotiated during the CLIENT_SETUP / SERVER_SETUP exchange. The relay picks from the client’s offered versions.

connecting → setup exchange → active → (goaway) → closing → closed

moqtap tracks and displays the session state at every transition.