Compare commits

...

2 Commits

3 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "node-eventstore-client",
"version": "0.1.9",
"version": "0.1.11",
"description": "A port of the EventStore .Net ClientAPI to Node.js",
"main": "index.js",
"types": "index.d.ts",

View File

@ -43,6 +43,7 @@ const EmptyGuid = '00000000-0000-0000-0000-000000000000';
* @property {Number} totalOperationCount
*/
function EventStoreConnectionLogicHandler(esConnection, settings) {
EventEmitter.call(this);
this._esConnection = esConnection;
this._settings = settings;
this._queue = new SimpleQueuedHandler();

View File

@ -37,6 +37,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;