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

Add properties for client.publish() #29

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

Conversation

toxazhl
Copy link

@toxazhl toxazhl commented Dec 5, 2024

No description provided.

@coveralls
Copy link

coveralls commented Dec 5, 2024

Pull Request Test Coverage Report for Build 12432654411

Details

  • 3 of 4 (75.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.04%) to 83.383%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/mqttproto/_types.py 1 2 50.0%
Totals Coverage Status
Change from base Build 12360571474: -0.04%
Covered Lines: 1390
Relevant Lines: 1667

💛 - Coveralls

@agronholm
Copy link
Owner

What is your end goal with this? I'm not sure we should allow setting arbitrary MQTT-level properties. User properties, on the other hand, are fair game.

@toxazhl
Copy link
Author

toxazhl commented Dec 8, 2024

My main case now is using MESSAGE_EXPIRY_INTERVAL. I need to avoid case if clients go online from offline and gets message too late, unexpected for me. Also CORRELATION_DATA and RESPONSE_TOPIC would be useful for request/response pattern

@agronholm
Copy link
Owner

I'll think about how to best provide these features. Meanwhile, this needs either a new test or an amended existing test to cover this new feature.

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