Skip to content

Support streaming query() #4

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Support streaming query() #4

wants to merge 1 commit into from

Conversation

swekaj
Copy link

@swekaj swekaj commented Mar 24, 2014

As indicated in issues #2 and #3, streaming isn't supported. This fixes that by checking if a callback is passed or not. If one is, it behaves normally. If one is not, do not pass a callback to the inherited function and instead attach listeners to facilitate detecting slow queries and emitting query events.

…llback is called, this changes the behavior of query(). Instead, look for the events that are emitted when no callback is sent and do the normal stuff once the query is over.
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