diff --git a/dist/index.js b/dist/index.js index e3fc484..7f7bd9d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -95,22 +95,22 @@ export default class HyperswarmWeb extends EventEmitter { this._relays.clear(); } on(eventName, listener) { - return this._processOrQueueAction("on", arguments); + return this._processOrQueueAction("on", ...arguments); } addListener(eventName, listener) { return this.on(eventName, listener); } off(eventName, listener) { - return this._processOrQueueAction("off", arguments); + return this._processOrQueueAction("off", ...arguments); } removeListener(eventName, listener) { return this.off(eventName, listener); } emit(eventName, ...args) { - return this._processOrQueueAction("emit", arguments); + return this._processOrQueueAction("emit", ...arguments); } once(eventName, listener) { - return this._processOrQueueAction("once", arguments); + return this._processOrQueueAction("once", ...arguments); } _processOrQueueAction(method, ...args) { if (this._activeRelay) {