File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -613,15 +613,16 @@ Publish a message to a topic
613
613
- `subscriptionIdentifier`: representing the identifier of the subscription `number`,
614
614
- `contentType`: String describing the content of the Application Message `string`
615
615
- `cbStorePut` - `function ()`, fired when message is put into `outgoingStore` if QoS is `1` or `2`.
616
- - `callback` - `function (err)`, fired when the QoS handling completes,
616
+ - `callback` - `function (err, packet )`, fired when the QoS handling completes,
617
617
or at the next tick if QoS 0. An error occurs if client is disconnecting.
618
618
619
619
<a name="publish-async"></a>
620
620
621
621
### mqtt.Client#publishAsync(topic, message, [options])
622
622
623
- Async [`publish`](#publish). Returns a `Promise<void >`.
623
+ Async [`publish`](#publish). Returns a `Promise<Packet | undefined >`.
624
624
625
+ A packet is anything that has a `messageId` property.
625
626
---
626
627
627
628
<a name="subscribe"></a>
@@ -653,7 +654,7 @@ Subscribe to a topic or topics
653
654
654
655
### mqtt.Client#subscribeAsync(topic/topic array/topic object, [options])
655
656
656
- Async [` subscribe` ](#subscribe). Returns a ` Promise < granted []> ` .
657
+ Async [` subscribe` ](#subscribe). Returns a ` Promise < ISubscriptionGrant []> ` .
657
658
658
659
---
659
660
You can’t perform that action at this time.
0 commit comments