#61 fixed subscriptionDropped being called only once

Added subscribe-all-from-events sample to test
This commit is contained in:
2018-10-21 14:46:55 -07:00
parent 96145fbe49
commit c1f17a7d99
2 changed files with 52 additions and 0 deletions

View File

@ -127,6 +127,8 @@ EventStoreCatchUpSubscription.prototype._runSubscription = function() {
var self = this;
this._stopped = false;
this._isDropped = false;
this._dropData = null;
if (this._verbose) this._log.debug("Catch-up Subscription to %s: pulling events...", logStreamName);
this._readEventsTill(this._connection, this._resolveLinkTos, this._userCredentials, null, null)
.then(function() {