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

Refactor MQTT handling #333

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Refactor MQTT handling #333

wants to merge 8 commits into from

Conversation

gitseti
Copy link
Contributor

@gitseti gitseti commented Feb 5, 2023

Additional behavior changes:

  • Removed the connect check, which returns a client directly when it’s already connected because it prevents users to do session takeovers in the shell. Instead they should use the switch command.
  • When using multiple topics in the subscribe command, then only one subscribe is send instead of one subscribe for each topic.
  • Remove shutdown hooks, so that client connections can be interrupted without the standard disconnect behavior -> On shell exit and subscribe interrupt the disconnect behavior stays the same
  • Switch now can be used by only providing the client
  • Improved publish command: multiple publishes by using multiple topics are now truly async instead of waiting for completion after each publish
  • Failing and successful disconnects are now logged
  • If the the will topic is missing connecting clients will now fail with an IllegalArgumentException instead of just logging a warning

TODO:

  • Unit Tests
  • Check all open TODO comments

@cla-bot cla-bot bot added the cla-signed label Feb 5, 2023
@SgtSilvio
Copy link
Member

@cla-bot check

Copy link

cla-bot bot commented Nov 28, 2024

The cla-bot has been summoned, and re-checked this pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants