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

feat: disconnect with properties #915

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kelvincesar
Copy link

Implements disconnect_with_properties and try_disconnect_with_properties methods on Client and AsyncClient, allowing disconnection from the broker with custom properties and reasons.

It should resolve #887.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • Formatted with cargo fmt
  • Make an entry to CHANGELOG.md if it's relevant to the users of the library. If it's not relevant mention why.

…properties

- Implemented disconnect and try_disconnect with properties. Created a handle function for async and sync code;
- Updated fn handle_incoming_packet to handle a disconnect object;
- Moved disconnect default reason to client file;
- Updated enum Request::Disconnect to accept Disconnect struct.
@kelvincesar kelvincesar changed the title feat: #887 disconnect with properties feat: disconnect with properties Sep 26, 2024
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.

rumqttc: disconnect with options
1 participant