Namespace Discovery
Overview
Section titled “Overview”Namespace discovery lets you find out what tracks a relay has available. The mechanism varies by draft version:
- Draft-14+:
SUBSCRIBE_NAMESPACE/PUBLISH_NAMESPACE - Draft-07:
SUBSCRIBE_ANNOUNCES(different message, same concept) - Draft-17: Adds
NAMESPACEandNAMESPACE_DONEmessages for richer discovery
Using the CLI
Section titled “Using the CLI”The fastest way to discover namespaces is moqtap peek:
# Discover all published namespacesmoqtap peek moqt://relay.example.com namespaces
# List tracks in a specific namespacemoqtap peek moqt://relay.example.com tracks live
# JSON outputmoqtap peek moqt://relay.example.com namespaces -jThe peek command auto-detects the relay’s draft version and uses the appropriate discovery mechanism.
Using the browser extension
Section titled “Using the browser extension”The browser extension passively decodes namespace discovery messages from your application’s WebTransport connections. Open the DevTools panel to see SUBSCRIBE_NAMESPACE and PUBLISH_NAMESPACE messages with full field display.
Stopping discovery
Section titled “Stopping discovery”Send UNSUBSCRIBE_NAMESPACE (draft-14) to stop receiving namespace announcements. In draft-17, the consolidated response pattern handles this differently.