Gets the first IPv4 address of the specified network interface of the
local machine. If no network interface name is specified, the first IPv4
address of the first network interface that provides an IPv4 address is
returned. Returns undefined
if no IPv4 address could be looked up.
This function can only be used in a server-side environment (Node.js), not in a browser runtime.
Gets the first IPv6 address of the specified network interface of the
local machine. If no network interface name is specified, the first IPv6
address of the first network interface that provides an IPv6 address is
returned. Returns undefined
if no IPv6 address could be looked up.
This function can only be used in a server-side environment (Node.js), not in a browser runtime.
Perform synchronous and asynchronous cleanup of allocated resources (e.g. file descriptors, handles, DB connections, etc.) before shutting down the Node.js process.
callback function for synchronous cleanup (optional)
callback function for asynchronous cleanup (optional)
Log changes in online/offline communication state (i.e. agent connection to Coaty broker) to the console.
a Coaty container
Log the given error to console, also providing the logging date.
error
an extra message (optional)
date string in ISO format or unspecified to use current data (optional)
Log the given event to console, also providing the logging date.
message to log
name of event to log (optional)
direction of event to log (in or out)
Log the given informational message to console, also providing the logging date.
informational message to log
date string in ISO format or unspecified to use current data (optional)
Provide a Configuration from the specified local JSON or JS file.
The value of this option must be the relative or absolute filename of a JSON config file or a CommonJS module file that exports a Configuration object.
If unspecified the default file looked up is app.config.js, then app.config.json in the current working directory of the server process.
This option can only be used in a server-side environment (Node.js), not in a browser runtime.
a local configuration file
Asynchrounously provides a Configuration from the given Url expecting a Configuration object in JSON format.
This option can only be used in a server-side environment (Node.js), not in a browser runtime.
a Url to load the configuration from
Generated using TypeDoc
Node.js specific utility functions to be used by Coaty agent services.