Skip to content

Improving event emission to be sure that the subscription is confirmed - #4

Open
sullof wants to merge 2 commits into
masterfrom
improve_events
Open

Improving event emission to be sure that the subscription is confirmed#4
sullof wants to merge 2 commits into
masterfrom
improve_events

Conversation

@sullof

@sullof sullof commented Apr 13, 2018

Copy link
Copy Markdown
Collaborator

I added a check in the SubscriptionManager. It reads the subscription expiration timestamp before calling the store to save the subscription. After it compares the new timestamp with the previous one. This way the newSubscriptionConfirmed event is emitted only if the entire process is successful. In the previous way, to be sure of that, you had to watch this event and also the event newSubscription emitted by SubscriptionStore. Before adding more feature,

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.

1 participant