Skip to content

ParseLiveQuery controller should wrap all subscription events #405

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

Merged
merged 1 commit into from
Jun 18, 2017

Conversation

dstarke
Copy link
Contributor

@dstarke dstarke commented Jan 26, 2017

When you call subscribe() on a query (which goes through the ParseLiveQuery controller), the resulting subscription does not currently receive close or error events for the underlying connection. This was occurring because the LiveQueryController is wrapping the underlying subscriptions, and was not forwarding the close or error events.

This pull request correctly wraps these two event types so that subscriptions receive all the event notifications they are supposed to, and introduces a new test case to check that all subscription events are forwarded correctly.

@flovilmart
Copy link
Contributor

LGTM! Thanks for the PR, and sorry for the late review!

@flovilmart flovilmart merged commit 6f109ab into parse-community:master Jun 18, 2017
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.

3 participants