Could somebody explain why PersistentSubscriptionSettings.fromRevision
[1] cannot be set to END
? In most cases we would not want to consume all events from the beginning. Would using ReadRevision
[2] not make more sense? or is it that way because it is safer to set it to an explicit revision if we don’t start from the beginning?
Judging from the implementation [3] it does not look like an oversight.
[1] https://github.com/EventStore/EventStore-Client-NodeJS/blob/master/src/utils/persistentSubscriptionSettings.ts#L17
[2] https://github.com/EventStore/EventStore-Client-NodeJS/blob/master/src/types/index.ts#L35
[3] https://github.com/EventStore/EventStore-Client-NodeJS/blob/master/src/persistentSubscription/createPersistentSubscription.ts#L54
Kind regards
Björn