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: docs/api/constructor.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,18 @@ The following options can be set as properties in an object for additional confi
40
40
41
41
Number of milliseconds to wait before timing out when acquiring a new client from the pool. Set to `0` to disable the timeout and wait indefinitely.
42
42
43
+
***notifyHeartbeatIntervalMs** - int, defaults to 10000
44
+
45
+
Interval between heartbeat checks on the dedicated LISTEN/NOTIFY connection. Lower values detect silent connection drops faster at the cost of more heartbeat queries.
46
+
47
+
***notifyHeartbeatTimeoutMs** - int, defaults to 5000
48
+
49
+
Timeout for each LISTEN/NOTIFY heartbeat query. If a heartbeat does not complete within this window the listener is torn down and reconnected. Raise this on a loaded database where the default is too aggressive.
50
+
51
+
***notifyKeepAliveInitialDelayMs** - int, defaults to 10000
52
+
53
+
TCP keepalive initial delay for the dedicated LISTEN/NOTIFY connection.
54
+
43
55
***db** - object
44
56
45
57
Passing an object named db allows you "bring your own database connection". This option may be beneficial if you'd like to use an existing database service with its own connection pool. Setting this option will bypass the above configuration.
0 commit comments