§9.8.

SUBSCRIBE

A subscription causes the publisher to send newly published objects for a track.

Subscribe only requests newly published or received Objects. Objects from the past are retrieved using FETCH (Section 9.14).

The format of SUBSCRIBE is as follows:

SUBSCRIBE Message {
  Type (vi64) = 0x3,
  Length (16),
  Request ID (vi64),
  Required Request ID Delta (vi64),
  Track Namespace (..),
  Track Name Length (vi64),
  Track Name (..),
  Number of Parameters (vi64),
  Parameters (..) ...
}
Figure 10: MOQT SUBSCRIBE Message

On successful subscription, the publisher MUST reply with a SUBSCRIBE_OK, allowing the subscriber to determine the start group/object when not explicitly specified, and start sending objects.

If the publisher cannot satisfy the requested Subscription Filter (see Section 9.3.7) or if the entire End Group has already been published it SHOULD send a REQUEST_ERROR with code INVALID_RANGE. A publisher MUST NOT send objects from outside the requested range.

Subscribing with the FORWARD parameter (Section 9.3.10) equal to 0 allows publisher or relay to prepare to serve the subscription in advance, reducing the time to receive objects in the future.

This is one section of the MoQT specification, rendered per-section for quick reference and citation. The authoritative text is draft-ietf-moq-transport-17 at the IETF.