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.
@@ -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, this._connection = new WebSocket(`wss://${this._ua.options.msrpDomain || this._ua._configuration.realm}`, "msrp"), this._connection.binaryType = "arraybuffer", this._connection.onopen = (n) => {
18966
- console.log("open", n), this.onopen();
18967
- }, this._connection.onclose = (n) => {
18968
- console.log("close", n), this.onclose();
18969
- }, this._connection.onmessage = (n) => {
18970
- console.log("msg", n), this.onmessage(n);
18971
- }, this._connection.onerror = (n) => {
18972
- console.log("error", n), this.onerror();
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,