@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.
- package/announce.d.ts +1 -1
- package/announce.js +0 -1
- package/announced.js +0 -1
- package/bandwidth.js +0 -1
- package/bandwidth_api.d.ts +1 -1
- package/bandwidth_api.js +0 -1
- package/broadcast.d.ts +3 -3
- package/broadcast.js +0 -1
- package/connection/accept.d.ts +2 -2
- package/connection/accept.js +0 -1
- package/connection/browser.js +0 -1
- package/connection/connect.d.ts +3 -3
- package/connection/connect.js +0 -1
- package/connection/established.d.ts +4 -4
- package/connection/established.js +0 -1
- package/connection/forward.js +0 -1
- package/connection/goaway.d.ts +1 -1
- package/connection/goaway.js +15 -2
- package/connection/goaway.js.map +1 -1
- package/connection/handshake.d.ts +2 -2
- package/connection/handshake.js +0 -1
- package/connection/index.d.ts +7 -7
- package/connection/index.js +0 -1
- package/connection/pool.d.ts +13 -13
- package/connection/pool.js +0 -1
- package/connection/reload.d.ts +1 -1
- package/connection/reload.js +0 -1
- package/connection/stats.d.ts +1 -1
- package/connection/stats.js +0 -1
- package/connection/transport.js +0 -1
- package/consume.js +0 -1
- package/datagram.d.ts +1 -1
- package/datagram.js +0 -1
- package/error.js +0 -1
- package/errors.d.ts +1 -1
- package/errors.js +0 -1
- package/group.d.ts +1 -1
- package/group.js +0 -1
- package/hop.js +0 -1
- package/ietf/adapter.d.ts +3 -3
- package/ietf/adapter.js +0 -1
- package/ietf/aliases.js +0 -1
- package/ietf/cluster.js +10 -3
- package/ietf/cluster.js.map +1 -1
- package/ietf/connection.d.ts +5 -5
- package/ietf/connection.d.ts.map +1 -1
- package/ietf/connection.js +2 -6
- package/ietf/connection.js.map +1 -1
- package/ietf/error.js +0 -1
- package/ietf/fetch.d.ts +4 -4
- package/ietf/fetch.d.ts.map +1 -1
- package/ietf/fetch.js +7 -4
- package/ietf/fetch.js.map +1 -1
- package/ietf/filter.d.ts +2 -2
- package/ietf/filter.js +0 -1
- package/ietf/goaway.d.ts +3 -3
- package/ietf/goaway.js +0 -1
- package/ietf/hidden.js +0 -1
- package/ietf/index.d.ts +20 -20
- package/ietf/index.js +0 -1
- package/ietf/message.d.ts +1 -1
- package/ietf/message.js +0 -1
- package/ietf/namespace.d.ts +2 -2
- package/ietf/namespace.js +0 -1
- package/ietf/object.d.ts +8 -3
- package/ietf/object.d.ts.map +1 -1
- package/ietf/object.js +7 -1
- package/ietf/object.js.map +1 -1
- package/ietf/parameters.d.ts +3 -3
- package/ietf/parameters.js +0 -1
- package/ietf/priority.js +0 -1
- package/ietf/properties.d.ts +3 -3
- package/ietf/properties.js +0 -1
- package/ietf/publish.d.ts +3 -3
- package/ietf/publish.js +0 -1
- package/ietf/publish_namespace.d.ts +4 -4
- package/ietf/publish_namespace.js +0 -1
- package/ietf/publisher.js +0 -2
- package/ietf/publisher.js.map +1 -1
- package/ietf/request.d.ts +3 -3
- package/ietf/request.js +0 -1
- package/ietf/request_stream.d.ts +2 -2
- package/ietf/request_stream.js +0 -1
- package/ietf/setup.d.ts +3 -3
- package/ietf/setup.js +0 -1
- package/ietf/solicit.js +0 -1
- package/ietf/subscribe.d.ts +6 -6
- package/ietf/subscribe.js +0 -1
- package/ietf/subscribe_namespace.d.ts +4 -4
- package/ietf/subscribe_namespace.js +0 -1
- package/ietf/subscriber.js +10 -3
- package/ietf/subscriber.js.map +1 -1
- package/ietf/token.js +0 -1
- package/ietf/track.d.ts +3 -3
- package/ietf/track.js +0 -1
- package/ietf/version.js +0 -1
- package/index.d.ts +13 -13
- package/index.d.ts.map +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/internal.d.ts +7 -7
- package/internal.js +0 -1
- package/lite/announce.d.ts +4 -4
- package/lite/announce.js +0 -1
- package/lite/connection.d.ts +7 -7
- package/lite/connection.js +0 -1
- package/lite/datagram.d.ts +1 -1
- package/lite/datagram.js +0 -1
- package/lite/datagram_stream.js +0 -1
- package/lite/fetch.d.ts +3 -3
- package/lite/fetch.js +0 -1
- package/lite/goaway.d.ts +2 -2
- package/lite/goaway.js +0 -1
- package/lite/group.d.ts +3 -3
- package/lite/group.js +0 -1
- package/lite/index.d.ts +13 -13
- package/lite/index.js +0 -1
- package/lite/message.d.ts +1 -1
- package/lite/message.js +0 -1
- package/lite/priority.js +0 -1
- package/lite/probe.d.ts +2 -2
- package/lite/probe.js +0 -1
- package/lite/publisher.js +0 -1
- package/lite/session.d.ts +2 -2
- package/lite/session.js +0 -1
- package/lite/setup.d.ts +3 -3
- package/lite/setup.js +0 -1
- package/lite/stream.d.ts +6 -6
- package/lite/stream.js +0 -1
- package/lite/subscribe.d.ts +3 -3
- package/lite/subscribe.js +0 -1
- package/lite/subscriber.d.ts +7 -7
- package/lite/subscriber.d.ts.map +1 -1
- package/lite/subscriber.js +5 -1
- package/lite/subscriber.js.map +1 -1
- package/lite/track.d.ts +3 -3
- package/lite/track.js +0 -1
- package/lite/version.js +0 -1
- package/origin.d.ts +6 -6
- package/origin.js +0 -1
- package/package.json +2 -2
- package/path.js +0 -1
- package/stream.d.ts +7 -3
- package/stream.d.ts.map +1 -1
- package/stream.js +24 -1
- package/stream.js.map +1 -1
- package/tail.d.ts +1 -1
- package/tail.js +0 -1
- package/time.js +0 -1
- package/track.d.ts +4 -4
- package/track.js +0 -1
- package/util/abort.js +0 -1
- package/util/hex.js +0 -1
- package/util/log.js +0 -1
- package/util/timeout.js +0 -1
- package/util/u64.js +0 -1
- package/util/utf8.js +0 -1
- package/util/varint.js +0 -1
- package/varint.js +0 -1
- package/wire.d.ts +7 -7
- package/wire.js +0 -1
- package/zod.d.ts +2 -2
- package/zod.js +0 -1
package/lite/announce.d.ts
CHANGED
|
@@ -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
package/lite/connection.d.ts
CHANGED
|
@@ -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
|
*
|
package/lite/connection.js
CHANGED
package/lite/datagram.d.ts
CHANGED
package/lite/datagram.js
CHANGED
package/lite/datagram_stream.js
CHANGED
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
package/lite/goaway.d.ts
CHANGED
package/lite/goaway.js
CHANGED
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
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
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
package/lite/priority.js
CHANGED
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
package/lite/publisher.js
CHANGED
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
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
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
package/lite/subscribe.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
|
/**
|
|
5
5
|
* Exclusive model/local cap from a decoded inclusive last group.
|
|
6
6
|
*
|
package/lite/subscribe.js
CHANGED
package/lite/subscriber.d.ts
CHANGED
|
@@ -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;
|
package/lite/subscriber.d.ts.map
CHANGED
|
@@ -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,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H,KAAK,CAAC,GAAG,CAAC,EAAE,KAAK,QAgBhB;CACD"}
|
package/lite/subscriber.js
CHANGED
|
@@ -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);
|