@apocaliss92/nodelink-js 0.1.17 → 0.1.18
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/README.md +41 -68
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -7711,6 +7711,12 @@ interface BaichuanWebRTCServerOptions {
|
|
|
7711
7711
|
username?: string;
|
|
7712
7712
|
credential?: string;
|
|
7713
7713
|
}>;
|
|
7714
|
+
/** Limit the UDP port range used by ICE (useful for Docker port publishing) */
|
|
7715
|
+
icePortRange?: [number, number];
|
|
7716
|
+
/** Extra host addresses to advertise as candidates (e.g. host LAN IP) */
|
|
7717
|
+
iceAdditionalHostAddresses?: string[];
|
|
7718
|
+
/** Force relay-only (TURN) if needed */
|
|
7719
|
+
iceTransportPolicy?: "all" | "relay";
|
|
7714
7720
|
/** Logger callback */
|
|
7715
7721
|
logger?: (level: "debug" | "info" | "warn" | "error", message: string) => void;
|
|
7716
7722
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1737,6 +1737,12 @@ export declare interface BaichuanWebRTCServerOptions {
|
|
|
1737
1737
|
username?: string;
|
|
1738
1738
|
credential?: string;
|
|
1739
1739
|
}>;
|
|
1740
|
+
/** Limit the UDP port range used by ICE (useful for Docker port publishing) */
|
|
1741
|
+
icePortRange?: [number, number];
|
|
1742
|
+
/** Extra host addresses to advertise as candidates (e.g. host LAN IP) */
|
|
1743
|
+
iceAdditionalHostAddresses?: string[];
|
|
1744
|
+
/** Force relay-only (TURN) if needed */
|
|
1745
|
+
iceTransportPolicy?: "all" | "relay";
|
|
1740
1746
|
/** Logger callback */
|
|
1741
1747
|
logger?: (level: "debug" | "info" | "warn" | "error", message: string) => void;
|
|
1742
1748
|
}
|
package/dist/index.js
CHANGED
|
@@ -5511,6 +5511,9 @@ Error: ${err}`
|
|
|
5511
5511
|
}
|
|
5512
5512
|
const peerConnection = new RTCPeerConnection({
|
|
5513
5513
|
iceServers,
|
|
5514
|
+
icePortRange: this.options.icePortRange,
|
|
5515
|
+
iceAdditionalHostAddresses: this.options.iceAdditionalHostAddresses,
|
|
5516
|
+
iceTransportPolicy: this.options.iceTransportPolicy,
|
|
5514
5517
|
codecs: {
|
|
5515
5518
|
video: [
|
|
5516
5519
|
new RTCRtpCodecParameters({
|