@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.
@@ -1021,6 +1021,7 @@ var ChannelInstance = class extends import_events.EventEmitter {
1021
1021
  }
1022
1022
  const scopedEvent = `${this.app}:Channel:${this.id}:${event}`;
1023
1023
  wsClient.off(scopedEvent, callback);
1024
+ wsClient.removeScopedChannelListeners(this.id, this.app);
1024
1025
  return this;
1025
1026
  }
1026
1027
  async answer() {
@@ -1104,6 +1105,7 @@ var ChannelInstance = class extends import_events.EventEmitter {
1104
1105
  console.log(
1105
1106
  `Canal '${this.id}' foi destru\xEDdo. Removendo listeners associados.`
1106
1107
  );
1108
+ wsClient.removeScopedChannelListeners(this.id, this.app);
1107
1109
  wsClient.removeScopedPlaybackListeners(playback.id, this.app);
1108
1110
  });
1109
1111
  return playback;