diff --git a/README.md b/README.md index 3012c2e2e..a04844a59 100644 --- a/README.md +++ b/README.md @@ -613,15 +613,16 @@ Publish a message to a topic - `subscriptionIdentifier`: representing the identifier of the subscription `number`, - `contentType`: String describing the content of the Application Message `string` - `cbStorePut` - `function ()`, fired when message is put into `outgoingStore` if QoS is `1` or `2`. -- `callback` - `function (err)`, fired when the QoS handling completes, +- `callback` - `function (err, packet)`, fired when the QoS handling completes, or at the next tick if QoS 0. An error occurs if client is disconnecting. ### mqtt.Client#publishAsync(topic, message, [options]) -Async [`publish`](#publish). Returns a `Promise`. +Async [`publish`](#publish). Returns a `Promise`. +A packet is anything that has a `messageId` property. --- @@ -653,7 +654,7 @@ Subscribe to a topic or topics ### mqtt.Client#subscribeAsync(topic/topic array/topic object, [options]) -Async [`subscribe`](#subscribe). Returns a `Promise`. +Async [`subscribe`](#subscribe). Returns a `Promise`. ---