mqtt 5.16.1 → 5.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -55
- package/build/bin/sub.js +1 -1
- package/build/bin/sub.js.map +1 -1
- package/build/lib/client.d.ts +6 -0
- package/build/lib/client.js +225 -7
- package/build/lib/client.js.map +1 -1
- package/build/lib/connect/index.js +50 -33
- package/build/lib/connect/index.js.map +1 -1
- package/build/lib/connect/tls.js +2 -4
- package/build/lib/connect/tls.js.map +1 -1
- package/build/lib/handlers/ack.js +9 -6
- package/build/lib/handlers/ack.js.map +1 -1
- package/build/lib/handlers/publish.js +1 -0
- package/build/lib/handlers/publish.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/dist/mqtt.esm.js +6 -6
- package/dist/mqtt.js +265 -50
- package/dist/mqtt.min.js +6 -6
- package/help/help.txt +2 -2
- package/help/publish.txt +6 -5
- package/help/subscribe.txt +6 -5
- package/package.json +1 -1
package/help/help.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
MQTT.js command line interface, available commands are:
|
|
2
2
|
|
|
3
|
-
* publish publish a message to the broker
|
|
4
|
-
* subscribe subscribe for updates from the broker
|
|
3
|
+
* publish publish a message to the broker (alias: pub)
|
|
4
|
+
* subscribe subscribe for updates from the broker (alias: sub)
|
|
5
5
|
* version the current MQTT.js version
|
|
6
6
|
* help help about commands
|
|
7
7
|
|
package/help/publish.txt
CHANGED
|
@@ -2,9 +2,9 @@ Usage: mqtt publish [opts] topic [message]
|
|
|
2
2
|
|
|
3
3
|
Available options:
|
|
4
4
|
|
|
5
|
-
-h/--hostname HOST the broker host
|
|
5
|
+
-h/--hostname HOST the broker host (also --host)
|
|
6
6
|
-p/--port PORT the broker port
|
|
7
|
-
-i/--
|
|
7
|
+
-i/--id ID the client id (also --clientId)
|
|
8
8
|
-q/--qos 0/1/2 the QoS of the message
|
|
9
9
|
-t/--topic TOPIC the message topic
|
|
10
10
|
-m/--message MSG the message body
|
|
@@ -13,14 +13,15 @@ Available options:
|
|
|
13
13
|
-M/--multiline read lines from stdin as multiple messages
|
|
14
14
|
-u/--username USER the username
|
|
15
15
|
-P/--password PASS the password
|
|
16
|
-
-C/--protocol PROTO
|
|
16
|
+
-C/-l/--protocol PROTO
|
|
17
|
+
the protocol to use, 'mqtt',
|
|
17
18
|
'mqtts', 'ws' or 'wss'
|
|
18
19
|
--key PATH path to the key file
|
|
19
20
|
--cert PATH path to the cert file
|
|
20
|
-
--ca PATH
|
|
21
|
+
--ca/--cafile PATH path to the ca certificate
|
|
21
22
|
--insecure do not verify the server certificate
|
|
22
23
|
--will-topic TOPIC the will topic
|
|
23
|
-
--will-
|
|
24
|
+
--will-message BODY the will message
|
|
24
25
|
--will-qos 0/1/2 the will qos
|
|
25
26
|
--will-retain send a will retained message
|
|
26
27
|
-H/--help show this
|
package/help/subscribe.txt
CHANGED
|
@@ -2,21 +2,22 @@ Usage: mqtt subscribe [opts] [topic]
|
|
|
2
2
|
|
|
3
3
|
Available options:
|
|
4
4
|
|
|
5
|
-
-h/--hostname HOST the broker host
|
|
5
|
+
-h/--hostname HOST the broker host (also --host)
|
|
6
6
|
-p/--port PORT the broker port
|
|
7
|
-
-i/--
|
|
8
|
-
-q/--qos 0/1/2 the QoS of the
|
|
7
|
+
-i/--id ID the client id (also --clientId)
|
|
8
|
+
-q/--qos 0/1/2 the QoS of the subscription
|
|
9
9
|
--no-clean do not discard any pending message for
|
|
10
10
|
the given id
|
|
11
11
|
-t/--topic TOPIC the message topic
|
|
12
12
|
-k/--keepalive SEC send a ping every SEC seconds
|
|
13
13
|
-u/--username USER the username
|
|
14
14
|
-P/--password PASS the password
|
|
15
|
-
-l/--protocol PROTO
|
|
15
|
+
-C/-l/--protocol PROTO
|
|
16
|
+
the protocol to use, 'mqtt',
|
|
16
17
|
'mqtts', 'ws' or 'wss'
|
|
17
18
|
--key PATH path to the key file
|
|
18
19
|
--cert PATH path to the cert file
|
|
19
|
-
--ca PATH
|
|
20
|
+
--ca/--cafile PATH path to the ca certificate
|
|
20
21
|
--insecure do not verify the server certificate
|
|
21
22
|
--will-topic TOPIC the will topic
|
|
22
23
|
--will-message BODY the will message
|
package/package.json
CHANGED