Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

aedes-stats

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aedes-stats

stats for aedes

latest
Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
1K
14.03%
Maintainers
3
Weekly downloads
 
Created
Source

aedes-stats

Dependencies Status devDependencies Status
Known Vulnerabilities Coverage Status NPM version NPM downloads

Stats for Aedes

Install

npm i aedes aedes-stats --save

Example

var aedes = require('aedes')
var stats = require('aedes-stats')
var instance = aedes()

stats(aedes)

Options

An object containing options can be passed in as the second argument to stats.

  • interval: ms to wait between publishing stats (defaults to 1000)

Topics and Stats published

  • $SYS/{ID}/uptime
  • $SYS/{ID}/time
  • $SYS/{ID}/clients/total
  • $SYS/{ID}/clients/maximum
  • $SYS/{ID}/messages/publish/sent
  • $SYS/{ID}/memory/heap/current
  • $SYS/{ID}/memory/heap/maximum

Where {ID} is the aedes instance id.

License

MIT

Keywords

stats

FAQs

Package last updated on 10 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts