Skip to content

Commit cce50c9

Browse files
DOC-5713 updated node-redis config example
1 parent 9ea72df commit cce50c9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

content/develop/clients/nodejs/connect.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ during the connection:
344344
```js
345345
const client = createClient({
346346
RESP: 3,
347-
maintPushNotifications: 'auto',
347+
maintNotifications: 'auto',
348+
maintEndpointType: 'auto'
348349
maintRelaxedCommandTimeout: 10000,
349350
maintRelaxedSocketTimeout: 10000,
350351
...
@@ -357,11 +358,17 @@ protocol, so you must set the `RESP:3` option explicitly when you connect.
357358

358359
The available options are:
359360

360-
- `maintPushNotifications`: (`string`) Whether or not to enable SCH. The options are
361+
- `maintNotifications`: (`string`) Whether or not to enable SCH. The options are
361362
- `'disabled'`: don't use SCH
362363
- `'enabled'`: attempt to activate SCH on the server and abort the connection if it isn't supported
363364
- `'auto'`: attempt to activate SCH on the server and fall back to a non-SCH
364365
connection if it isn't supported. This is the default.
366+
- `maintEndpointType`: (`MovingEndpointType`) The type of endpoint to use for the connection. The options are:
367+
- `'external-ip'`: use the external IP address of the server
368+
- `'internal-ip'`: use the internal IP address of the server
369+
- `'external-fqdn'`: use the external FQDN of the server
370+
- `'internal-fqdn'`: use the internal FQDN of the server
371+
- `'auto'`: auto-detect based on connection. This is the default.
365372
- `maintRelaxedCommandTimeout`: (`number`) The command timeout to use while the server is
366373
performing maintenance. The default is 10000 (10 seconds). If a timeout happens during the maintenance period, the client receives a `CommandTimeoutDuringMaintenance` error.
367374
- `maintRelaxedSocketTimeout`: (`number`) The socket timeout to use while the server is

0 commit comments

Comments
 (0)