Skip to content

Commit 9076ad7

Browse files
vkarpov15hasezoey
andauthored
Update docs/connections.md
Co-authored-by: hasezoey <hasezoey@gmail.com>
1 parent 4a19ecd commit 9076ad7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/connections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ connection may emit.
274274
* `reconnected`: Emitted if Mongoose lost connectivity to MongoDB and successfully reconnected. Mongoose attempts to [automatically reconnect](https://thecodebarbarian.com/managing-connections-with-the-mongodb-node-driver.html) when it loses connection to the database.
275275
* `error`: Emitted if an error occurs on a connection, like a `parseError` due to malformed data or a payload larger than [16MB](https://www.mongodb.com/docs/manual/reference/limits/#BSON-Document-Size).
276276

277-
When you're connecting to a single MongoDB server (a ["standalone"](https://www.mongodb.com/docs/cloud-manager/tutorial/deploy-standalone/)), Mongoose will emit 'disconnected' if it gets
278-
disconnected from the standalone server, and 'connected' if it successfully connects to the standalone. In a
277+
When you're connecting to a single MongoDB server (a ["standalone"](https://www.mongodb.com/docs/cloud-manager/tutorial/deploy-standalone/)), Mongoose will emit `disconnected` if it gets
278+
disconnected from the standalone server, and `connected` if it successfully connects to the standalone. In a
279279
[replica set](https://www.mongodb.com/docs/manual/replication/), Mongoose will emit 'disconnected' if it loses connectivity to the replica set primary, and 'connected' if it manages to reconnect to the replica set primary.
280280

281281
If you are using `mongoose.connect()`, you can use the following to listen to the above events:

0 commit comments

Comments
 (0)