opensips-js 0.1.26 → 0.1.28
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/dist/index.d.ts +3 -1
- package/dist/opensips-js.cjs.js +2 -2
- package/dist/opensips-js.es.js +13 -11
- package/dist/opensips-js.iife.js +2 -2
- package/dist/opensips-js.umd.js +2 -2
- package/package.json +1 -1
- package/src/types/rtc.d.ts +2 -0
package/dist/opensips-js.es.js
CHANGED
|
@@ -18962,14 +18962,16 @@ class nu extends ft.EventEmitter {
|
|
|
18962
18962
|
return this._id;
|
|
18963
18963
|
}
|
|
18964
18964
|
connect(t = "") {
|
|
18965
|
-
t !== "" && (this._direction = "outgoing"), this.target = t
|
|
18966
|
-
|
|
18967
|
-
}, this._connection.
|
|
18968
|
-
console.log("
|
|
18969
|
-
}, this._connection.
|
|
18970
|
-
console.log("
|
|
18971
|
-
}, this._connection.
|
|
18972
|
-
console.log("
|
|
18965
|
+
t !== "" && (this._direction = "outgoing"), this.target = t;
|
|
18966
|
+
const n = this._ua.options.msrpWs ? "ws" : "wss";
|
|
18967
|
+
this._connection = new WebSocket(`${n}://${this._ua.options.msrpDomain || this._ua._configuration.realm}`, "msrp"), this._connection.binaryType = "arraybuffer", this._connection.onopen = (a) => {
|
|
18968
|
+
console.log("open", a), this.onopen();
|
|
18969
|
+
}, this._connection.onclose = (a) => {
|
|
18970
|
+
console.log("close", a), this.onclose();
|
|
18971
|
+
}, this._connection.onmessage = (a) => {
|
|
18972
|
+
console.log("msg", a), this.onmessage(a);
|
|
18973
|
+
}, this._connection.onerror = (a) => {
|
|
18974
|
+
console.log("error", a), this.onerror();
|
|
18973
18975
|
};
|
|
18974
18976
|
}
|
|
18975
18977
|
_sendKeepAlive() {
|
|
@@ -23605,9 +23607,6 @@ class hS {
|
|
|
23605
23607
|
|
|
23606
23608
|
return this.context
|
|
23607
23609
|
}*/
|
|
23608
|
-
get noiseReductionMode() {
|
|
23609
|
-
return this.noiseReduction.mode;
|
|
23610
|
-
}
|
|
23611
23610
|
get currentActiveRoomId() {
|
|
23612
23611
|
return this.currentActiveRoomIdValue;
|
|
23613
23612
|
}
|
|
@@ -23781,6 +23780,9 @@ class hS {
|
|
|
23781
23780
|
volume: n
|
|
23782
23781
|
});
|
|
23783
23782
|
}
|
|
23783
|
+
getNoiseReductionMode() {
|
|
23784
|
+
return this.noiseReduction.mode;
|
|
23785
|
+
}
|
|
23784
23786
|
setMetricsConfig(t) {
|
|
23785
23787
|
this.metricConfig = {
|
|
23786
23788
|
...this.metricConfig,
|