mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
Add missing node-ipc configuration options (#19942)
* Add missing options * Use method signature
This commit is contained in:
committed by
Mohamed Hegazy
parent
a06bec94c5
commit
f88f85476f
Vendored
+13
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for node-ipc 9.0
|
||||
// Type definitions for node-ipc 9.1
|
||||
// Project: http://riaevangelist.github.io/node-ipc/
|
||||
// Definitions by: Arvitaly <https://github.com/arvitaly>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -260,6 +260,11 @@ declare namespace NodeIPC {
|
||||
* Set the depth for util.inspect during ipc.log
|
||||
*/
|
||||
logDepth: number;
|
||||
/**
|
||||
* Default: console.log
|
||||
* The function which receives the output from ipc.log; should take a single string argument
|
||||
*/
|
||||
logger(msg: string): void;
|
||||
/**
|
||||
* Default: 100
|
||||
* This is the max number of connections allowed to a socket. It is currently only being set on Unix Sockets.
|
||||
@@ -287,6 +292,13 @@ declare namespace NodeIPC {
|
||||
* If set to 0, the client will NOT try to reconnect
|
||||
*/
|
||||
stopRetrying: boolean;
|
||||
/**
|
||||
* Default: true
|
||||
* Defaults to true meaning that the module will take care of deleting the IPC socket prior to startup.
|
||||
* If you use node-ipc in a clustered environment where there will be multiple listeners on the same socket,
|
||||
* you must set this to false and then take care of deleting the socket in your own code.
|
||||
*/
|
||||
unlink: boolean;
|
||||
/**
|
||||
* Primarily used when specifying which interface a client should connect through.
|
||||
* see the socket.connect documentation in the node.js api https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener
|
||||
|
||||
@@ -14,6 +14,7 @@ ipc.config.interfaces = {
|
||||
};
|
||||
ipc.config.logDepth = 6;
|
||||
ipc.config.logInColor = true;
|
||||
ipc.config.logger = console.log;
|
||||
ipc.config.maxConnections = 200;
|
||||
ipc.config.maxRetries = false;
|
||||
ipc.config.networkHost = "127.0.0.1";
|
||||
@@ -24,6 +25,7 @@ ipc.config.silent = true;
|
||||
ipc.config.socketRoot = "";
|
||||
ipc.config.stopRetrying = false;
|
||||
ipc.config.sync = true;
|
||||
ipc.config.unlink = false;
|
||||
ipc.config.tls = {
|
||||
rejectUnauthorized: false,
|
||||
public: "",
|
||||
|
||||
Reference in New Issue
Block a user