Skip to content

Commit f4e85c6

Browse files
authored
Merge pull request #1557 from vladgolubev/patch-1
docs(MongoClient): keepAlive is number not boolean
2 parents 62c7ed7 + 4c385ad commit f4e85c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo_client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function MongoClient() {
102102
* @param {boolean} [options.autoReconnect=true] Enable autoReconnect for single server instances
103103
* @param {boolean} [options.noDelay=true] TCP Connection no delay
104104
* @param {number} [options.family=4] Version of IP stack. Defaults to 4.
105-
* @param {boolean} [options.keepAlive=30000] The number of milliseconds to wait before initiating keepAlive on the TCP socket.
105+
* @param {number} [options.keepAlive=30000] The number of milliseconds to wait before initiating keepAlive on the TCP socket.
106106
* @param {number} [options.connectTimeoutMS=30000] TCP Connection timeout setting
107107
* @param {number} [options.socketTimeoutMS=360000] TCP Socket timeout setting
108108
* @param {number} [options.reconnectTries=30] Server attempt to reconnect #times

0 commit comments

Comments
 (0)