Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/3 catch up subscriptions #10

Closed

Conversation

ZBlocker655
Copy link

Pertaining to issue #3, I have ported the catch-up subscription functionality from the official Event Store .NET client.

As of now only single-stream catch-up subscriptions are implemented, not all-event catch-up subscriptions, primarily because the subscribeToAll functionality seems to be missing from the Connection class. As I don't need subscribe-to-all right now, I've chosen not to implement it for this pull request.

I added one (tiny) additional package: the argument-validator package - just for some quick argument validation. That package has no dependencies of its own; it's very lightweight.

In addition to the new code, I have updated the README file and the TypeScript definitions.

There are some new Mocha tests in the testing area, all working on a bare-bones installation of Event Store. The tests create and destroy randomly named streams. As part of adding the new test code, I've centralized some of the common test functionality and adding quick utilities for generating and writing test events.

Zach Blocker added 14 commits June 8, 2016 17:07
… (still in progress), meant to be a port of the same module from the official .NET Event Store client.
…. Almost done readEVentsTill method. Not yet implemented tryProcess.
…t implemented (due to missing functionality in the connection module) but is stubbed here as a signpost for future development.
…nection method subscribeToStreamFrom (which is an entry point to a stream-based catch-up subscription).
…ing it as "eventstore". This will facilitate using different host names on different development environments.
…and to generate and write test events, and finally to delete given test streams.
…lter code interfaces for conformity to existing ones (cosmetic changes only)
@x-cubed
Copy link
Owner

x-cubed commented Jun 12, 2016

Awesome, tests and docs included!

Thanks for the contribution!

@x-cubed x-cubed closed this Jun 12, 2016
@ZBlocker655 ZBlocker655 deleted the feature/3-catch-up-subscriptions branch June 12, 2016 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants