-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 a flag to control re-subscribe functionality. #665
Add a flag to control re-subscribe functionality. #665
Conversation
Codecov Report
@@ Coverage Diff @@
## master #665 +/- ##
==========================================
+ Coverage 92.66% 92.66% +<.01%
==========================================
Files 8 8
Lines 668 682 +14
Branches 161 167 +6
==========================================
+ Hits 619 632 +13
- Misses 49 50 +1
Continue to review full report at Codecov.
|
Can you also add a fix for the other issue? There seem to be some new lines that are not covered by unit tests, would you mind adding those too? Thanks! |
Does the other issue mean treat well with In order to add the fix, I need to know how do I know And I found |
Yes it's the information you are looking for is in the granted property. |
@mcollina , thanks. I implemented the library code. Now I start writing tests. I think that the test server needs to return |
You should instantiate a new server and replace the |
@mcollina , thank you! I will write tests. |
I implemented the fix for suback error case. I also implemented the test. I implemented the test in abstract_client.js. I'm not sure either abstract_client.js or client.js is an appropriate location to implement the test. If there is a room to improve, please let me know. |
Thanks, released as v2.12.0. |
This pull request implements a option
resubscribe
for controlling re-subscribe.The default value of
resubscribe
is true. It doesn't break current behavior.It will fix #664 partially. Partially means, if
suback
has error payload, then re-subscribe topics should be removed. It is a different issue.