INNER CODE UNIT · JavaScript

STATS_INTERVAL_MS

riclolsen/json-scada · src/camera-onvif/index.js:41

const STATS_INTERVAL_MS = 30000 // connection stats update period
const MAX_COMMAND_AGE_MS = 10000 // discard commands older than this
const DEFAULT_TIMEOUT_MS = 5000
const DEFAULT_FFMPEG_OPTIONS = { '-r': 30, '-s': '320x240' }

process.on('uncaughtException', (err) =>
  Log.log('Uncaught Exception: ' + (err.stack || err))
)
process.on('unhandledRejection', (reason) =>
  Log.log('Unhandled Rejection: ' + (reason?.stack || reason))
)

const jsConfig = LoadConfig()
Log.levelCurrent = jsConfig.LogLevel

const MongoStatus = { HintMongoIsConnected: false }
const FfmpegPath = resolveFfmpegPath()
let Connections = [] // protocolConnections docs decorated with runtime state

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…