PATH:
usr
/
lib
/
node_modules
/
pm2
/
node_modules
/
@pm2
/
agent
'use strict' /** * Convert value to boolean but false if undefined * @param {String} value * @param {String} fallback default value * @return {Boolean} */ const useIfDefined = (value, fallback) => { if (typeof value === 'undefined') { return fallback } else { return value === 'true' } } /** * Configuration for transporters * Configuration by transporter : * @param {Integer} enabled * @param {Object|String} endpoints sended as first arg with connect() method */ module.exports = { transporters: { websocket: { enabled: true, // useIfDefined(process.env.AGENT_TRANSPORT_WEBSOCKET, true), endpoints: process.env.AGENT_WEBSOCKET_ENDPOINT || 'ws' } } }
[+]
node_modules
[-] constants.js
[edit]
[-] README.md
[edit]
[-] .mocharc.yml
[edit]
[-] package.json
[edit]
[+]
src
[+]
..
[-] LICENSE
[edit]
[-] config.js
[edit]
[-] bun.lockb
[edit]
[-] index.js
[edit]