@ipcom/asterisk-ari 0.0.124 → 0.0.125

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.
@@ -1966,6 +1966,15 @@ var WebSocketClient = class extends import_events3.EventEmitter {
1966
1966
  "message"
1967
1967
  )}`
1968
1968
  );
1969
+ const removeKey = `${key}:removeListener`;
1970
+ const removeListener = this.scopedListeners.get(removeKey);
1971
+ if (removeListener) {
1972
+ this.off("message", removeListener);
1973
+ this.scopedListeners.delete(removeKey);
1974
+ console.log(
1975
+ `Listener de 'removeListener' tamb\xE9m foi removido para '${key}'.`
1976
+ );
1977
+ }
1969
1978
  console.log("Depois de remover listeners:");
1970
1979
  this.listListeners("message");
1971
1980
  }