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

Broker TTL #45

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

Conversation

mnowotka
Copy link

This PR adds ttlInSeconds fields and parsing from properties.messageExpiryInterval

@mnowotka mnowotka changed the title CM-1511 broker TTL Broker TTL Aug 30, 2021
@@ -1,6 +1,6 @@
{
"name": "aedes-packet",
"version": "2.3.1",
"version": "2.3.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the version bump

@@ -9,6 +9,7 @@ function Packet (original, broker) {
this.qos = original.qos || 0
this.retain = original.retain || false
this.dup = original.dup || false
this.ttlInSeconds = original.properties?.messageExpiryInterval
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't keep the original packet structure and use packet properties?

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.

2 participants