You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/develop/clients/nodejs/connect.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -344,7 +344,8 @@ during the connection:
344
344
```js
345
345
constclient=createClient({
346
346
RESP:3,
347
-
maintPushNotifications:'auto',
347
+
maintNotifications:'auto',
348
+
maintEndpointType:'auto'
348
349
maintRelaxedCommandTimeout:10000,
349
350
maintRelaxedSocketTimeout:10000,
350
351
...
@@ -357,11 +358,17 @@ protocol, so you must set the `RESP:3` option explicitly when you connect.
357
358
358
359
The available options are:
359
360
360
-
-`maintPushNotifications`: (`string`) Whether or not to enable SCH. The options are
361
+
-`maintNotifications`: (`string`) Whether or not to enable SCH. The options are
361
362
-`'disabled'`: don't use SCH
362
363
-`'enabled'`: attempt to activate SCH on the server and abort the connection if it isn't supported
363
364
-`'auto'`: attempt to activate SCH on the server and fall back to a non-SCH
364
365
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.
365
372
-`maintRelaxedCommandTimeout`: (`number`) The command timeout to use while the server is
366
373
performing maintenance. The default is 10000 (10 seconds). If a timeout happens during the maintenance period, the client receives a `CommandTimeoutDuringMaintenance` error.
367
374
-`maintRelaxedSocketTimeout`: (`number`) The socket timeout to use while the server is
0 commit comments