@moq/net 0.4.6 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/announce.d.ts +1 -1
  2. package/announce.js +0 -1
  3. package/announced.js +0 -1
  4. package/bandwidth.js +0 -1
  5. package/bandwidth_api.d.ts +1 -1
  6. package/bandwidth_api.js +0 -1
  7. package/broadcast.d.ts +3 -3
  8. package/broadcast.js +0 -1
  9. package/connection/accept.d.ts +2 -2
  10. package/connection/accept.js +0 -1
  11. package/connection/browser.js +0 -1
  12. package/connection/connect.d.ts +3 -3
  13. package/connection/connect.js +0 -1
  14. package/connection/established.d.ts +4 -4
  15. package/connection/established.js +0 -1
  16. package/connection/forward.js +0 -1
  17. package/connection/goaway.d.ts +1 -1
  18. package/connection/goaway.js +15 -2
  19. package/connection/goaway.js.map +1 -1
  20. package/connection/handshake.d.ts +2 -2
  21. package/connection/handshake.js +0 -1
  22. package/connection/index.d.ts +7 -7
  23. package/connection/index.js +0 -1
  24. package/connection/pool.d.ts +13 -13
  25. package/connection/pool.js +0 -1
  26. package/connection/reload.d.ts +1 -1
  27. package/connection/reload.js +0 -1
  28. package/connection/stats.d.ts +1 -1
  29. package/connection/stats.js +0 -1
  30. package/connection/transport.js +0 -1
  31. package/consume.js +0 -1
  32. package/datagram.d.ts +1 -1
  33. package/datagram.js +0 -1
  34. package/error.js +0 -1
  35. package/errors.d.ts +1 -1
  36. package/errors.js +0 -1
  37. package/group.d.ts +1 -1
  38. package/group.js +0 -1
  39. package/hop.js +0 -1
  40. package/ietf/adapter.d.ts +3 -3
  41. package/ietf/adapter.js +0 -1
  42. package/ietf/aliases.js +0 -1
  43. package/ietf/cluster.js +10 -3
  44. package/ietf/cluster.js.map +1 -1
  45. package/ietf/connection.d.ts +5 -5
  46. package/ietf/connection.d.ts.map +1 -1
  47. package/ietf/connection.js +2 -6
  48. package/ietf/connection.js.map +1 -1
  49. package/ietf/error.js +0 -1
  50. package/ietf/fetch.d.ts +4 -4
  51. package/ietf/fetch.d.ts.map +1 -1
  52. package/ietf/fetch.js +7 -4
  53. package/ietf/fetch.js.map +1 -1
  54. package/ietf/filter.d.ts +2 -2
  55. package/ietf/filter.js +0 -1
  56. package/ietf/goaway.d.ts +3 -3
  57. package/ietf/goaway.js +0 -1
  58. package/ietf/hidden.js +0 -1
  59. package/ietf/index.d.ts +20 -20
  60. package/ietf/index.js +0 -1
  61. package/ietf/message.d.ts +1 -1
  62. package/ietf/message.js +0 -1
  63. package/ietf/namespace.d.ts +2 -2
  64. package/ietf/namespace.js +0 -1
  65. package/ietf/object.d.ts +8 -3
  66. package/ietf/object.d.ts.map +1 -1
  67. package/ietf/object.js +7 -1
  68. package/ietf/object.js.map +1 -1
  69. package/ietf/parameters.d.ts +3 -3
  70. package/ietf/parameters.js +0 -1
  71. package/ietf/priority.js +0 -1
  72. package/ietf/properties.d.ts +3 -3
  73. package/ietf/properties.js +0 -1
  74. package/ietf/publish.d.ts +3 -3
  75. package/ietf/publish.js +0 -1
  76. package/ietf/publish_namespace.d.ts +4 -4
  77. package/ietf/publish_namespace.js +0 -1
  78. package/ietf/publisher.js +0 -2
  79. package/ietf/publisher.js.map +1 -1
  80. package/ietf/request.d.ts +3 -3
  81. package/ietf/request.js +0 -1
  82. package/ietf/request_stream.d.ts +2 -2
  83. package/ietf/request_stream.js +0 -1
  84. package/ietf/setup.d.ts +3 -3
  85. package/ietf/setup.js +0 -1
  86. package/ietf/solicit.js +0 -1
  87. package/ietf/subscribe.d.ts +6 -6
  88. package/ietf/subscribe.js +0 -1
  89. package/ietf/subscribe_namespace.d.ts +4 -4
  90. package/ietf/subscribe_namespace.js +0 -1
  91. package/ietf/subscriber.js +10 -3
  92. package/ietf/subscriber.js.map +1 -1
  93. package/ietf/token.js +0 -1
  94. package/ietf/track.d.ts +3 -3
  95. package/ietf/track.js +0 -1
  96. package/ietf/version.js +0 -1
  97. package/index.d.ts +13 -13
  98. package/index.d.ts.map +1 -1
  99. package/index.js +0 -1
  100. package/index.js.map +1 -1
  101. package/internal.d.ts +7 -7
  102. package/internal.js +0 -1
  103. package/lite/announce.d.ts +4 -4
  104. package/lite/announce.js +0 -1
  105. package/lite/connection.d.ts +7 -7
  106. package/lite/connection.js +0 -1
  107. package/lite/datagram.d.ts +1 -1
  108. package/lite/datagram.js +0 -1
  109. package/lite/datagram_stream.js +0 -1
  110. package/lite/fetch.d.ts +3 -3
  111. package/lite/fetch.js +0 -1
  112. package/lite/goaway.d.ts +2 -2
  113. package/lite/goaway.js +0 -1
  114. package/lite/group.d.ts +3 -3
  115. package/lite/group.js +0 -1
  116. package/lite/index.d.ts +13 -13
  117. package/lite/index.js +0 -1
  118. package/lite/message.d.ts +1 -1
  119. package/lite/message.js +0 -1
  120. package/lite/priority.js +0 -1
  121. package/lite/probe.d.ts +2 -2
  122. package/lite/probe.js +0 -1
  123. package/lite/publisher.js +0 -1
  124. package/lite/session.d.ts +2 -2
  125. package/lite/session.js +0 -1
  126. package/lite/setup.d.ts +3 -3
  127. package/lite/setup.js +0 -1
  128. package/lite/stream.d.ts +6 -6
  129. package/lite/stream.js +0 -1
  130. package/lite/subscribe.d.ts +3 -3
  131. package/lite/subscribe.js +0 -1
  132. package/lite/subscriber.d.ts +7 -7
  133. package/lite/subscriber.d.ts.map +1 -1
  134. package/lite/subscriber.js +5 -1
  135. package/lite/subscriber.js.map +1 -1
  136. package/lite/track.d.ts +3 -3
  137. package/lite/track.js +0 -1
  138. package/lite/version.js +0 -1
  139. package/origin.d.ts +6 -6
  140. package/origin.js +0 -1
  141. package/package.json +2 -2
  142. package/path.js +0 -1
  143. package/stream.d.ts +7 -3
  144. package/stream.d.ts.map +1 -1
  145. package/stream.js +24 -1
  146. package/stream.js.map +1 -1
  147. package/tail.d.ts +1 -1
  148. package/tail.js +0 -1
  149. package/time.js +0 -1
  150. package/track.d.ts +4 -4
  151. package/track.js +0 -1
  152. package/util/abort.js +0 -1
  153. package/util/hex.js +0 -1
  154. package/util/log.js +0 -1
  155. package/util/timeout.js +0 -1
  156. package/util/u64.js +0 -1
  157. package/util/utf8.js +0 -1
  158. package/util/varint.js +0 -1
  159. package/varint.js +0 -1
  160. package/wire.d.ts +7 -7
  161. package/wire.js +0 -1
  162. package/zod.d.ts +2 -2
  163. package/zod.js +0 -1
@@ -1,7 +1,7 @@
1
- import { type Cost, type Hop } from "../hop";
2
- import * as Path from "../path";
3
- import type { Reader, Writer } from "../stream";
4
- import { Version } from "./version";
1
+ import { type Cost, type Hop } from "../hop.ts";
2
+ import * as Path from "../path.ts";
3
+ import type { Reader, Writer } from "../stream.ts";
4
+ import { Version } from "./version.ts";
5
5
  export type { Cost };
6
6
  /**
7
7
  * Lite-07: copy `keep` path segments (from the head) or hops (from the tail) of the
package/lite/announce.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./announce.d.ts" */
2
1
  import { ProtocolViolation } from "../error.js";
3
2
  import { HopSchema, MAX_HOPS, UNKNOWN_HOP } from "../hop.js";
4
3
  import * as Path from "../path.js";
@@ -1,11 +1,11 @@
1
1
  import { type Getter } from "@moq/signals";
2
- import type * as announce from "../announced";
3
- import type { Established } from "../connection/established";
4
- import { type Probe, type Stats } from "../connection/stats";
5
- import { type Transport } from "../connection/transport";
6
- import { type Hop } from "../hop";
7
- import type * as Path from "../path";
8
- import { type Role } from "./setup";
2
+ import type * as announce from "../announced.ts";
3
+ import type { Established } from "../connection/established.ts";
4
+ import { type Probe, type Stats } from "../connection/stats.ts";
5
+ import { type Transport } from "../connection/transport.ts";
6
+ import { type Hop } from "../hop.ts";
7
+ import type * as Path from "../path.ts";
8
+ import { type Role } from "./setup.ts";
9
9
  /**
10
10
  * Represents a connection to a MoQ server.
11
11
  *
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./connection.d.ts" */
2
1
  import { Once, Signal } from "@moq/signals";
3
2
  import { transportStats } from "../connection/stats.js";
4
3
  import { transportOf } from "../connection/transport.js";
@@ -1,4 +1,4 @@
1
- import type { Version } from "./version";
1
+ import type { Version } from "./version.ts";
2
2
  /**
3
3
  * A QUIC datagram body: `subscribe (i) | sequence (i) | timestamp (i) | payload (b)`.
4
4
  *
package/lite/datagram.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./datagram.d.ts" */
2
1
  /**
3
2
  * Wire-level QUIC datagram body for moq-lite-05 (§6.4).
4
3
  *
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./datagram_stream.d.ts" */
2
1
  /** Compatibility helpers for browser WebTransport datagram stream shape changes. */
3
2
  function datagrams(quic) {
4
3
  return quic.datagrams;
package/lite/fetch.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as Path from "../path";
2
- import type { Reader, Writer } from "../stream";
3
- import { Version } from "./version";
1
+ import * as Path from "../path.ts";
2
+ import type { Reader, Writer } from "../stream.ts";
3
+ import { Version } from "./version.ts";
4
4
  export declare class Fetch {
5
5
  #private;
6
6
  broadcast: Path.Valid;
package/lite/fetch.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./fetch.d.ts" */
2
1
  import * as Path from "../path.js";
3
2
  import * as Message from "./message.js";
4
3
  import { hasFrameBounds, Version } from "./version.js";
package/lite/goaway.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Reader, Writer } from "../stream";
2
- import { Version } from "./version";
1
+ import type { Reader, Writer } from "../stream.ts";
2
+ import { Version } from "./version.ts";
3
3
  export declare class Goaway {
4
4
  #private;
5
5
  uri: string;
package/lite/goaway.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./goaway.d.ts" */
2
1
  import * as Message from "./message.js";
3
2
  import { Version } from "./version.js";
4
3
  function guardGoaway(version) {
package/lite/group.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type * as netGroup from "../group";
2
- import type { Cursor, Reader, Writer } from "../stream";
3
- import { type Version } from "./version";
1
+ import type * as netGroup from "../group.ts";
2
+ import type { Cursor, Reader, Writer } from "../stream.ts";
3
+ import { type Version } from "./version.ts";
4
4
  export declare class Group {
5
5
  #private;
6
6
  subscribe: bigint;
package/lite/group.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./group.d.ts" */
2
1
  import { race } from "@moq/signals";
3
2
  import * as Time from "../time.js";
4
3
  import * as Message from "./message.js";
package/lite/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- export * from "./announce";
2
- export * from "./connection";
3
- export * from "./datagram";
4
- export * from "./fetch";
5
- export * from "./goaway";
6
- export * from "./group";
7
- export * from "./probe";
8
- export * from "./session";
9
- export * from "./setup";
10
- export * from "./stream";
11
- export * from "./subscribe";
12
- export * from "./track";
13
- export * from "./version";
1
+ export * from "./announce.ts";
2
+ export * from "./connection.ts";
3
+ export * from "./datagram.ts";
4
+ export * from "./fetch.ts";
5
+ export * from "./goaway.ts";
6
+ export * from "./group.ts";
7
+ export * from "./probe.ts";
8
+ export * from "./session.ts";
9
+ export * from "./setup.ts";
10
+ export * from "./stream.ts";
11
+ export * from "./subscribe.ts";
12
+ export * from "./track.ts";
13
+ export * from "./version.ts";
14
14
  //# sourceMappingURL=index.d.ts.map
package/lite/index.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./index.d.ts" */
2
1
  export * from "./announce.js";
3
2
  export * from "./connection.js";
4
3
  export * from "./datagram.js";
package/lite/message.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Reader, Writer } from "../stream";
1
+ import { Reader, Writer } from "../stream.ts";
2
2
  export declare function encode(writer: Writer, f: (w: Writer) => Promise<void>, max?: number): Promise<void>;
3
3
  export declare function decode<T>(reader: Reader, f: (r: Reader) => Promise<T>, max?: number): Promise<T>;
4
4
  export declare function decodeMaybe<T>(reader: Reader, f: (r: Reader) => Promise<T>): Promise<T | undefined>;
package/lite/message.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./message.d.ts" */
2
1
  import { Reader, Writer } from "../stream.js";
3
2
  /** The largest message body either side accepts, matching the Rust implementation. */
4
3
  const MAX_SIZE = 64 * 1024 * 1024;
package/lite/priority.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./priority.d.ts" */
2
1
  /**
3
2
  * Stream prioritization for moq-lite, mirroring the Rust `lite::priority` queue.
4
3
  *
package/lite/probe.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Reader, Writer } from "../stream";
2
- import { Version } from "./version";
1
+ import type { Reader, Writer } from "../stream.ts";
2
+ import { Version } from "./version.ts";
3
3
  /** The metrics a PROBE message carries. Each is independently optional. */
4
4
  export interface ProbeInit {
5
5
  /** Estimated send bitrate in bits per second. Omit if unknown. */
package/lite/probe.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./probe.d.ts" */
2
1
  import * as Message from "./message.js";
3
2
  import { hasProbeRtt, Version } from "./version.js";
4
3
  function guardProbe(version) {
package/lite/publisher.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./publisher.d.ts" */
2
1
  import { race, Signal } from "@moq/signals";
3
2
  import { error, NotFound, reason, StreamCode, StreamError } from "../error.js";
4
3
  import { Cost, routesEqual } from "../hop.js";
package/lite/session.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Reader, Writer } from "../stream";
2
- import { Version } from "./version";
1
+ import type { Reader, Writer } from "../stream.ts";
2
+ import { Version } from "./version.ts";
3
3
  export declare class Extensions {
4
4
  entries: Map<bigint, Uint8Array>;
5
5
  constructor();
package/lite/session.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./session.d.ts" */
2
1
  import * as Message from "./message.js";
3
2
  import { Version } from "./version.js";
4
3
  export class Extensions {
package/lite/setup.d.ts CHANGED
@@ -4,9 +4,9 @@
4
4
  *
5
5
  * @module
6
6
  */
7
- import { type Hop } from "../hop";
8
- import { Reader, type Writer } from "../stream";
9
- import { type Version } from "./version";
7
+ import { type Hop } from "../hop.ts";
8
+ import { Reader, type Writer } from "../stream.ts";
9
+ import { type Version } from "./version.ts";
10
10
  /**
11
11
  * The probe capability an endpoint advertises in SETUP.
12
12
  *
package/lite/setup.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./setup.d.ts" */
2
1
  /**
3
2
  * The lite-05+ SETUP message: each endpoint advertises its capabilities once, as the
4
3
  * sole message on a unidirectional Setup Stream ({@link DataType.Setup}), then closes it.
package/lite/stream.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { AnnounceRequest } from "./announce";
2
- import type { Goaway } from "./goaway";
3
- import type { Group } from "./group";
4
- import type { SessionClient } from "./session";
5
- import type { Subscribe } from "./subscribe";
6
- import type { Track } from "./track";
1
+ import type { AnnounceRequest } from "./announce.ts";
2
+ import type { Goaway } from "./goaway.ts";
3
+ import type { Group } from "./group.ts";
4
+ import type { SessionClient } from "./session.ts";
5
+ import type { Subscribe } from "./subscribe.ts";
6
+ import type { Track } from "./track.ts";
7
7
  export type StreamBi = SessionClient | AnnounceRequest | Subscribe | Track | Goaway;
8
8
  export type StreamUni = Group;
9
9
  export declare const StreamId: {
package/lite/stream.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./stream.d.ts" */
2
1
  export const StreamId = {
3
2
  Session: 0,
4
3
  Announce: 1,
@@ -1,6 +1,6 @@
1
- import * as Path from "../path";
2
- import type { Reader, Writer } from "../stream";
3
- import { Version } from "./version";
1
+ import * as Path from "../path.ts";
2
+ import type { Reader, Writer } from "../stream.ts";
3
+ import { Version } from "./version.ts";
4
4
  /**
5
5
  * Exclusive model/local cap from a decoded inclusive last group.
6
6
  *
package/lite/subscribe.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./subscribe.d.ts" */
2
1
  import * as Path from "../path.js";
3
2
  import * as Message from "./message.js";
4
3
  import { hasFrameBounds, hasGroupOrder, hasStreamCount, resolvesStart, Version } from "./version.js";
@@ -1,10 +1,10 @@
1
- import * as announce from "../announced";
2
- import * as broadcast from "../broadcast";
3
- import * as netGroup from "../group";
4
- import { type Hop } from "../hop";
5
- import * as Path from "../path";
6
- import type * as track from "../track";
7
- import { Version } from "./version";
1
+ import * as announce from "../announced.ts";
2
+ import * as broadcast from "../broadcast.ts";
3
+ import * as netGroup from "../group.ts";
4
+ import { type Hop } from "../hop.ts";
5
+ import * as Path from "../path.ts";
6
+ import type * as track from "../track.ts";
7
+ import { Version } from "./version.ts";
8
8
  export declare class Subscriber {
9
9
  #private;
10
10
  readonly version: Version;
@@ -1 +1 @@
1
- {"version":3,"file":"subscriber.d.ts","sourceRoot":"","sources":["../../src/lite/subscriber.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAI7C,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,EAAQ,KAAK,GAAG,EAAwE,MAAM,WAAW,CAAC;AAEjH,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAInC,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AA8B1C,OAAO,EAQN,OAAO,EACP,MAAM,cAAc,CAAC;AAsEtB,qBAAa,UAAU;;IAItB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAG1B,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAsDlB;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,KAAK,GAAE,IAAI,CAAC,OAA4B,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAKjG;IAsRD;;;;;;;;;OASG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,QAAQ,CAE5C;IA6OK,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAKhF;IAIK,UAAU,CACf,SAAS,EAAE,IAAI,CAAC,KAAK,EACrB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,KAAK,CAAC,iBAAsB,GACnC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAgC5B;YA+Ga,YAAY;IAkSpB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CA0C9B;IAED;;;OAGG;IACH,KAAK,CAAC,GAAG,CAAC,EAAE,KAAK,QAgBhB;CACD"}
1
+ {"version":3,"file":"subscriber.d.ts","sourceRoot":"","sources":["../../src/lite/subscriber.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAI7C,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,EAAQ,KAAK,GAAG,EAAwE,MAAM,WAAW,CAAC;AAEjH,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAInC,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AA8B1C,OAAO,EAQN,OAAO,EACP,MAAM,cAAc,CAAC;AAsEtB,qBAAa,UAAU;;IAItB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAG1B,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAsDlB;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,KAAK,GAAE,IAAI,CAAC,OAA4B,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAKjG;IAsRD;;;;;;;;;OASG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,QAAQ,CAE5C;IA6OK,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAKhF;IAIK,UAAU,CACf,SAAS,EAAE,IAAI,CAAC,KAAK,EACrB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,KAAK,CAAC,iBAAsB,GACnC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAgC5B;YA+Ga,YAAY;IAwSpB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CA0C9B;IAED;;;OAGG;IACH,KAAK,CAAC,GAAG,CAAC,EAAE,KAAK,QAgBhB;CACD"}
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./subscriber.d.ts" */
2
1
  import { race, Signal } from "@moq/signals";
3
2
  import * as announce from "../announced.js";
4
3
  import * as broadcast from "../broadcast.js";
@@ -872,6 +871,11 @@ export class Subscriber {
872
871
  }
873
872
  return;
874
873
  }
874
+ // This reader cannot preserve a partial group's frame indices, so refuse it before
875
+ // publishing anything that would number its first received frame as zero.
876
+ if (group.frameStart !== 0) {
877
+ throw new ProtocolViolation(`group ${group.sequence} starts at frame ${group.frameStart}`);
878
+ }
875
879
  const { track, timescale, tail } = entry;
876
880
  const producer = new netGroup.Producer(group.sequence);
877
881
  const read = tail.open(group.sequence);