Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 4.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
299
increased by24.58%
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc