diff --git a/src/core/eventStoreConnectionLogicHandler.js b/src/core/eventStoreConnectionLogicHandler.js index 17c3670..4698397 100644 --- a/src/core/eventStoreConnectionLogicHandler.js +++ b/src/core/eventStoreConnectionLogicHandler.js @@ -47,6 +47,7 @@ const ClientVersion = 1; * @property {Number} totalOperationCount */ function EventStoreConnectionLogicHandler(esConnection, settings) { + EventEmitter.call(this); this._esConnection = esConnection; this._settings = settings; this._queue = new SimpleQueuedHandler(); diff --git a/src/eventStoreNodeConnection.js b/src/eventStoreNodeConnection.js index 595b432..c0474b3 100644 --- a/src/eventStoreNodeConnection.js +++ b/src/eventStoreNodeConnection.js @@ -38,6 +38,7 @@ const MaxReadSize = 4096; * @constructor */ function EventStoreNodeConnection(settings, clusterSettings, endpointDiscoverer, connectionName) { + EventEmitter.call(this); this._connectionName = connectionName || ['ES-', uuid.v4()].join(''); this._settings = settings; this._clusterSettings = clusterSettings;