obi-sdk 0.3.2 → 0.3.4

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.
@@ -16024,7 +16024,7 @@ class Lc {
16024
16024
  this.room && (this.room.on(T.LocalTrackUnpublished, (e) => {
16025
16025
  e.source === E.Source.ScreenShare && (this.screenStream = void 0);
16026
16026
  }), this.room.on(T.Disconnected, () => {
16027
- console.log("Room disconnected"), this.disconnect();
16027
+ this.disconnect();
16028
16028
  }), this.room.on(T.ParticipantDisconnected, () => {
16029
16029
  this.disconnect();
16030
16030
  }), this.room.on(T.TrackSubscribed, (e, A, n) => {
@@ -16119,7 +16119,7 @@ class Lc {
16119
16119
  var e, A, n;
16120
16120
  this.room && (this.room.disconnect(!0), this.room.removeAllListeners(), this.room = void 0), (e = this.screenStream) != null && e.track && this.screenStream.track.stop(), this.microphoneStream && this.microphoneStream.getTracks().forEach((i) => i.stop()), this._userAudioTimer && (window.clearTimeout(this._userAudioTimer), this._userAudioTimer = null), this._assistantAudioTimer && (window.clearTimeout(this._assistantAudioTimer), this._assistantAudioTimer = null), await ((A = this.userAudioContext) == null ? void 0 : A.close().catch(() => {
16121
16121
  })), this.userAudioContext = null, await ((n = this.assistantAudioContext) == null ? void 0 : n.close().catch(() => {
16122
- })), this.assistantAudioContext = null, this.setState(H.READY);
16122
+ })), this.assistantAudioContext = null, this.setState(H.READY), this.emitter.emit("disconnected");
16123
16123
  }
16124
16124
  setState(e) {
16125
16125
  e !== this.currentState && (this.currentState = e, this.emitter.emit("stateChanged", e));