File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,8 @@ the `connect` event. Typically a `net.Socket`.
179
179
reconnections
180
180
* ` connectTimeout ` : ` 30 * 1000 ` milliseconds, time to wait before a
181
181
CONNACK is received
182
+ * ` username ` : the username required by your broker, if any
183
+ * ` password ` : the password required by your broker, if any
182
184
* ` incomingStore ` : a [ Store] ( #store ) for the incoming packets
183
185
* ` outgoingStore ` : a [ Store] ( #store ) for the outgoing packets
184
186
* ` 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
195
197
Beware that you are exposing yourself to man in the middle attacks, so it is a configuration
196
198
that is not recommended for production environments.
197
199
198
- If your broker requires username and password, you can add ` username ` and ` password ` to the ` options ` object.
199
-
200
200
If you are connecting to a broker that supports only MQTT 3.1 (not
201
201
3.1.1 compliant), you should pass these additional options:
202
202
You can’t perform that action at this time.
0 commit comments