diff --git a/lib/dispatcher/dispatcher.js b/lib/dispatcher/dispatcher.js index 9ce5c20b780..4f23e6e3485 100644 --- a/lib/dispatcher/dispatcher.js +++ b/lib/dispatcher/dispatcher.js @@ -59,6 +59,7 @@ class ComposedDispatcher extends Dispatcher { this[kOnDisconnect] = (...args) => this.emit('disconnect', ...args) this[kOnConnectionError] = (...args) => this.emit('connectionError', ...args) + // TODO (fix): These must be weak references... this.#dispatcher .on('drain', this[kOnDrain]) .on('connect', this[kOnConnect])