-
-
Notifications
You must be signed in to change notification settings - Fork 233
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 'delivered' event on PUBACK handler #39
Conversation
Can you please do the same for PUBCOM and add the doc relative to this in the README? |
Right now, the I changed the event to 'deliver' and updated the test. Working on updates to README now. |
README updated. Let me know if there is anything else to add. |
client.publish({ | ||
topic: 'hello', | ||
payload: new Buffer('world'), | ||
qos: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be qos:2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. Corrected.
Add 'delivered' event on PUBACK handler
Release as v0.14.0 |
@@ -3,6 +3,7 @@ | |||
function handlePuback (client, packet, done) { | |||
var persistence = client.broker.persistence | |||
persistence.outgoingClearMessageId(client, packet, done) | |||
client.broker.emit('deliver', packet, client) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe delivered
or ack
could be a better name, in Mosca we are using delivered
@mcollina
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think 'ack' is the best of all, actually. I'll get that updated asap!
Il giorno dom 3 apr 2016 alle 18:14 Behrad [email protected] ha
scritto:
In lib/handlers/puback.js
#39 (comment):@@ -3,6 +3,7 @@
function handlePuback (client, packet, done) {
var persistence = client.broker.persistence
persistence.outgoingClearMessageId(client, packet, done)
- client.broker.emit('deliver', packet, client)
I believe delivered or ack could be a better name, in Mosca we are using
delivered @mcollina https://github.com/mcollina—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/mcollina/aedes/pull/39/files/7897baca0c9db516cd179f3d64497c9527b84f5a#r58312605
This addresses #10 and emits a
delivered
event when a PUBACK is received.