add number type to maxRetries (#40019)

maxRetries can also be a number to specify the number of retries. Currently it is only possible to either do no retry or 1 retry (with setting to true).
This commit is contained in:
Johannes Dobler
2019-11-05 22:19:19 +01:00
committed by Nathan Shively-Sanders
parent 1c44f1681f
commit 62ef71cd97

View File

@@ -287,7 +287,7 @@ declare namespace NodeIPC {
* if set, it represents the maximum number of retries after each disconnect before giving up
* and completely killing a specific connection
*/
maxRetries: boolean;
maxRetries: boolean | number;
/**
* Default: false
* Defaults to false meaning clients will continue to retry to connect to servers indefinitely at the retry interval.