@ipcom/asterisk-ari 0.0.127 → 0.0.128

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
@@ -1063,8 +1063,23 @@ var ChannelInstance = class extends EventEmitter {
1063
1063
  );
1064
1064
  playback.once("PlaybackFinished", async () => {
1065
1065
  console.log(
1066
- `Playback '${playback.id}' finalizado no canal '${this.id}'.`
1066
+ `PlaybackFinished '${playback.id}' finalizado no canal '${this.id}'.`
1067
1067
  );
1068
+ console.log(this.client.getWebSocketClients().get(this.app));
1069
+ this.client.getWebSocketClients().get(this.app)?.removeScopedMessageListeners(playback.id, this.app);
1070
+ });
1071
+ playback.once("PlaybackStarted", async () => {
1072
+ console.log(
1073
+ `PlaybackStarted '${playback.id}' finalizado no canal '${this.id}'.`
1074
+ );
1075
+ console.log(this.client.getWebSocketClients().get(this.app));
1076
+ this.client.getWebSocketClients().get(this.app)?.removeScopedMessageListeners(playback.id, this.app);
1077
+ });
1078
+ playback.once("PlaybackContinuing", async () => {
1079
+ console.log(
1080
+ `PlaybackContinuing '${playback.id}' finalizado no canal '${this.id}'.`
1081
+ );
1082
+ console.log(this.client.getWebSocketClients().get(this.app));
1068
1083
  this.client.getWebSocketClients().get(this.app)?.removeScopedMessageListeners(playback.id, this.app);
1069
1084
  });
1070
1085
  return playback;