Skip to content
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

Fix/mqtt default subscription #1510

Open
wants to merge 11 commits into
base: development
Choose a base branch
from

Conversation

Umang01-hash
Copy link
Member

@Umang01-hash Umang01-hash commented Feb 20, 2025

Pull Request Template

Description:

  • Add IsConnected() method to all pub-sub clients so that during subscription we can have a check of it before actually trying to subscribe.
  • Add retryConnect to default MQTT client so that re-subscription happens after defaultClient reconnects.

Checklist:

  • I have formatted my code using goimport and golangci-lint.
  • All new code is covered by unit tests.
  • This PR does not decrease the overall code coverage.
  • I have reviewed the code comments and documentation for clarity.

Thank you for your contribution!

@vikash
Copy link
Contributor

vikash commented Feb 21, 2025

This looks unnecessary to be exposed. Subscribe can internally decide this. @Umang01-hash

@Umang01-hash
Copy link
Member Author

This looks unnecessary to be exposed. Subscribe can internally decide this. @Umang01-hash

Sure @vikash will do it internally.

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