mqtt 4.2.4 → 4.2.8
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/CHANGELOG.md +23 -0
- package/CONTRIBUTING.md +27 -27
- package/LICENSE.md +15 -15
- package/README.md +792 -784
- package/bin/mqtt.js +27 -27
- package/bin/pub.js +146 -146
- package/bin/sub.js +123 -123
- package/dist/mqtt.js +7466 -8450
- package/dist/mqtt.min.js +1 -1
- package/doc/help.txt +8 -8
- package/doc/publish.txt +26 -26
- package/doc/subscribe.txt +26 -26
- package/lib/client.js +1581 -1581
- package/lib/connect/ali.js +128 -128
- package/lib/connect/index.js +164 -177
- package/lib/connect/tcp.js +21 -21
- package/lib/connect/tls.js +45 -45
- package/lib/connect/ws.js +256 -255
- package/lib/connect/wx.js +134 -134
- package/lib/store.js +128 -128
- package/lib/validations.js +52 -52
- package/mqtt.js +17 -17
- package/package.json +109 -108
- package/types/index.d.ts +28 -27
- package/types/lib/client-options.d.ts +191 -191
- package/types/lib/client.d.ts +240 -232
- package/types/lib/connect/index.d.ts +10 -10
- package/types/lib/store-options.d.ts +6 -6
- package/types/lib/store.d.ts +46 -46
package/doc/help.txt
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
MQTT.js command line interface, available commands are:
|
|
2
|
-
|
|
3
|
-
* publish publish a message to the broker
|
|
4
|
-
* subscribe subscribe for updates from the broker
|
|
5
|
-
* version the current MQTT.js version
|
|
6
|
-
* help help about commands
|
|
7
|
-
|
|
8
|
-
Launch 'mqtt help [command]' to know more about the commands.
|
|
1
|
+
MQTT.js command line interface, available commands are:
|
|
2
|
+
|
|
3
|
+
* publish publish a message to the broker
|
|
4
|
+
* subscribe subscribe for updates from the broker
|
|
5
|
+
* version the current MQTT.js version
|
|
6
|
+
* help help about commands
|
|
7
|
+
|
|
8
|
+
Launch 'mqtt help [command]' to know more about the commands.
|
package/doc/publish.txt
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
Usage: mqtt publish [opts] topic [message]
|
|
2
|
-
|
|
3
|
-
Available options:
|
|
4
|
-
|
|
5
|
-
-h/--hostname HOST the broker host
|
|
6
|
-
-p/--port PORT the broker port
|
|
7
|
-
-i/--client-id ID the client id
|
|
8
|
-
-q/--qos 0/1/2 the QoS of the message
|
|
9
|
-
-t/--topic TOPIC the message topic
|
|
10
|
-
-m/--message MSG the message body
|
|
11
|
-
-r/--retain send a retained message
|
|
12
|
-
-s/--stdin read the message body from stdin
|
|
13
|
-
-M/--multiline read lines from stdin as multiple messages
|
|
14
|
-
-u/--username USER the username
|
|
15
|
-
-P/--password PASS the password
|
|
16
|
-
-C/--protocol PROTO the protocol to use, 'mqtt',
|
|
17
|
-
'mqtts', 'ws' or 'wss'
|
|
18
|
-
--key PATH path to the key file
|
|
19
|
-
--cert PATH path to the cert file
|
|
20
|
-
--ca PATH path to the ca certificate
|
|
21
|
-
--insecure do not verify the server certificate
|
|
22
|
-
--will-topic TOPIC the will topic
|
|
23
|
-
--will-payload BODY the will message
|
|
24
|
-
--will-qos 0/1/2 the will qos
|
|
25
|
-
--will-retain send a will retained message
|
|
26
|
-
-H/--help show this
|
|
1
|
+
Usage: mqtt publish [opts] topic [message]
|
|
2
|
+
|
|
3
|
+
Available options:
|
|
4
|
+
|
|
5
|
+
-h/--hostname HOST the broker host
|
|
6
|
+
-p/--port PORT the broker port
|
|
7
|
+
-i/--client-id ID the client id
|
|
8
|
+
-q/--qos 0/1/2 the QoS of the message
|
|
9
|
+
-t/--topic TOPIC the message topic
|
|
10
|
+
-m/--message MSG the message body
|
|
11
|
+
-r/--retain send a retained message
|
|
12
|
+
-s/--stdin read the message body from stdin
|
|
13
|
+
-M/--multiline read lines from stdin as multiple messages
|
|
14
|
+
-u/--username USER the username
|
|
15
|
+
-P/--password PASS the password
|
|
16
|
+
-C/--protocol PROTO the protocol to use, 'mqtt',
|
|
17
|
+
'mqtts', 'ws' or 'wss'
|
|
18
|
+
--key PATH path to the key file
|
|
19
|
+
--cert PATH path to the cert file
|
|
20
|
+
--ca PATH path to the ca certificate
|
|
21
|
+
--insecure do not verify the server certificate
|
|
22
|
+
--will-topic TOPIC the will topic
|
|
23
|
+
--will-payload BODY the will message
|
|
24
|
+
--will-qos 0/1/2 the will qos
|
|
25
|
+
--will-retain send a will retained message
|
|
26
|
+
-H/--help show this
|
package/doc/subscribe.txt
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
Usage: mqtt subscribe [opts] [topic]
|
|
2
|
-
|
|
3
|
-
Available options:
|
|
4
|
-
|
|
5
|
-
-h/--hostname HOST the broker host
|
|
6
|
-
-p/--port PORT the broker port
|
|
7
|
-
-i/--client-id ID the client id
|
|
8
|
-
-q/--qos 0/1/2 the QoS of the message
|
|
9
|
-
--no-clean do not discard any pending message for
|
|
10
|
-
the given id
|
|
11
|
-
-t/--topic TOPIC the message topic
|
|
12
|
-
-k/--keepalive SEC send a ping every SEC seconds
|
|
13
|
-
-u/--username USER the username
|
|
14
|
-
-P/--password PASS the password
|
|
15
|
-
-l/--protocol PROTO the protocol to use, 'mqtt',
|
|
16
|
-
'mqtts', 'ws' or 'wss'
|
|
17
|
-
--key PATH path to the key file
|
|
18
|
-
--cert PATH path to the cert file
|
|
19
|
-
--ca PATH path to the ca certificate
|
|
20
|
-
--insecure do not verify the server certificate
|
|
21
|
-
--will-topic TOPIC the will topic
|
|
22
|
-
--will-message BODY the will message
|
|
23
|
-
--will-qos 0/1/2 the will qos
|
|
24
|
-
--will-retain send a will retained message
|
|
25
|
-
-v/--verbose print the topic before the message
|
|
26
|
-
-H/--help show this
|
|
1
|
+
Usage: mqtt subscribe [opts] [topic]
|
|
2
|
+
|
|
3
|
+
Available options:
|
|
4
|
+
|
|
5
|
+
-h/--hostname HOST the broker host
|
|
6
|
+
-p/--port PORT the broker port
|
|
7
|
+
-i/--client-id ID the client id
|
|
8
|
+
-q/--qos 0/1/2 the QoS of the message
|
|
9
|
+
--no-clean do not discard any pending message for
|
|
10
|
+
the given id
|
|
11
|
+
-t/--topic TOPIC the message topic
|
|
12
|
+
-k/--keepalive SEC send a ping every SEC seconds
|
|
13
|
+
-u/--username USER the username
|
|
14
|
+
-P/--password PASS the password
|
|
15
|
+
-l/--protocol PROTO the protocol to use, 'mqtt',
|
|
16
|
+
'mqtts', 'ws' or 'wss'
|
|
17
|
+
--key PATH path to the key file
|
|
18
|
+
--cert PATH path to the cert file
|
|
19
|
+
--ca PATH path to the ca certificate
|
|
20
|
+
--insecure do not verify the server certificate
|
|
21
|
+
--will-topic TOPIC the will topic
|
|
22
|
+
--will-message BODY the will message
|
|
23
|
+
--will-qos 0/1/2 the will qos
|
|
24
|
+
--will-retain send a will retained message
|
|
25
|
+
-v/--verbose print the topic before the message
|
|
26
|
+
-H/--help show this
|