Skip to content

Commit 064f89a

Browse files
committed
Better username/password options.
1 parent 5d9239c commit 064f89a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ the `connect` event. Typically a `net.Socket`.
179179
reconnections
180180
* `connectTimeout`: `30 * 1000` milliseconds, time to wait before a
181181
CONNACK is received
182+
* `username`: the username required by your broker, if any
183+
* `password`: the password required by your broker, if any
182184
* `incomingStore`: a [Store](#store) for the incoming packets
183185
* `outgoingStore`: a [Store](#store) for the outgoing packets
184186
* `will`: a message that will sent by the broker automatically when
@@ -195,8 +197,6 @@ If you are using a **self-signed certificate**, pass the `rejectUnauthorized: fa
195197
Beware that you are exposing yourself to man in the middle attacks, so it is a configuration
196198
that is not recommended for production environments.
197199

198-
If your broker requires username and password, you can add `username` and `password` to the `options` object.
199-
200200
If you are connecting to a broker that supports only MQTT 3.1 (not
201201
3.1.1 compliant), you should pass these additional options:
202202

0 commit comments

Comments
 (0)