@ipcom/asterisk-ari 0.0.134 → 0.0.136

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/esm/index.js CHANGED
@@ -999,6 +999,7 @@ var ChannelInstance = class extends EventEmitter {
999
999
  }
1000
1000
  const scopedEvent = `${this.app}:Channel:${this.id}:${event}`;
1001
1001
  wsClient.off(scopedEvent, callback);
1002
+ wsClient.removeScopedChannelListeners(this.id, this.app);
1002
1003
  return this;
1003
1004
  }
1004
1005
  async answer() {
@@ -1082,6 +1083,7 @@ var ChannelInstance = class extends EventEmitter {
1082
1083
  console.log(
1083
1084
  `Canal '${this.id}' foi destru\xEDdo. Removendo listeners associados.`
1084
1085
  );
1086
+ wsClient.removeScopedChannelListeners(this.id, this.app);
1085
1087
  wsClient.removeScopedPlaybackListeners(playback.id, this.app);
1086
1088
  });
1087
1089
  return playback;