-
Notifications
You must be signed in to change notification settings - Fork 16
add queryError event #117
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
add queryError event #117
Conversation
Current coverage is 100% (diff: 100%)@@ develop #117 diff @@
=====================================
Files 16 16
Lines 1552 1553 +1
Methods 264 264
Messages 0 0
Branches 398 398
=====================================
+ Hits 1552 1553 +1
Misses 0 0
Partials 0 0
|
@@ -57,7 +57,8 @@ module.exports = Kuzzle = function (host, options, cb) { | |||
jwtTokenExpired: {lastEmitted: null, listeners: []}, | |||
loginAttempt: {lastEmitted: null, listeners: []}, | |||
offlineQueuePush: {listeners: []}, | |||
offlineQueuePop: {listeners: []} | |||
offlineQueuePop: {listeners: []}, | |||
queryError: {lastEmitted: null, listeners: []} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding the lastEmitted
property automatically prevents this event being fired more than once every this.eventTimeout
ms (currently set to 200ms).
We may not want to throttle this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Do you plan to add this one to android and ios? |
I need to have the actual pending PRs on iOS SDK to be merged then I'll figure out how to implement it |
It can be delayed, JIRA Ticket was written |
No description provided.