aedes-stats
Advanced tools
Comparing version 2.0.0 to 3.0.0
{ | ||
"name": "aedes-stats", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "stats for aedes", | ||
"main": "stats.js", | ||
"scripts": { | ||
"lint": "standard", | ||
"test": "standard && tape test.js | faucet", | ||
"lint": "standard --verbose | snazzy", | ||
"test": "tape test.js | faucet", | ||
"coverage": "nyc --reporter=lcov tape test.js" | ||
@@ -37,3 +37,4 @@ }, | ||
"pre-commit": "^1.2.2", | ||
"standard": "^13.0.2", | ||
"snazzy": "^8.0.0", | ||
"standard": "^13.1.0", | ||
"tape": "^4.11.0" | ||
@@ -40,0 +41,0 @@ }, |
# aedes-stats | ||
[![Build Status](https://travis-ci.org/mcollina/aedes-stats.svg?branch=master)](https://travis-ci.org/mcollina/aedes-stats) | ||
[![Dependencies Status](https://david-dm.org/mcollina/aedes-stats/status.svg)](https://david-dm.org/mcollina/aedes-stats) | ||
[![devDependencies Status](https://david-dm.org/mcollina/aedes-stats/dev-status.svg)](https://david-dm.org/mcollina/aedes-stats?type=dev) | ||
<br/> | ||
[![Known Vulnerabilities](https://snyk.io/test/github/mcollina/aedes-stats/badge.svg)](https://snyk.io/test/github/mcollina/aedes-stats) | ||
[![Coverage Status](https://coveralls.io/repos/mcollina/aedes-stats/badge.svg?branch=master&service=github)](https://coveralls.io/github/mcollina/aedes-stats?branch=master) | ||
[![NPM version](https://img.shields.io/npm/v/aedes-stats.svg?style=flat)](https://www.npmjs.com/package/aedes-stats) | ||
[![NPM downloads](https://img.shields.io/npm/dm/aedes-stats.svg?style=flat)](https://www.npmjs.com/package/aedes-stats) | ||
Stats for Aedes | ||
Stats for [Aedes](http://npm.im/aedes) | ||
@@ -5,0 +13,0 @@ ## Install |
@@ -42,3 +42,8 @@ 'use strict' | ||
function doPub (topic, value) { | ||
aedesInstance.publish({ topic: '$SYS/' + aedesInstance.id + '/' + topic, payload: '' + value }) | ||
aedesInstance.publish({ | ||
topic: '$SYS/' + aedesInstance.id + '/' + topic, | ||
payload: '' + value, | ||
qos: 0, | ||
retain: true | ||
}) | ||
} | ||
@@ -45,0 +50,0 @@ |
@@ -11,2 +11,3 @@ 'use strict' | ||
t.plan(1) | ||
var instance = aedes() | ||
@@ -39,2 +40,3 @@ var server = net.createServer(instance.handle) | ||
t.plan(1) | ||
var instance = aedes() | ||
@@ -76,2 +78,3 @@ var server = net.createServer(instance.handle) | ||
t.plan(1) | ||
var instance = aedes() | ||
@@ -113,2 +116,3 @@ var server = net.createServer(instance.handle) | ||
t.plan(1) | ||
var instance = aedes() | ||
@@ -142,2 +146,3 @@ var server = net.createServer(instance.handle) | ||
t.plan(1) | ||
var instance = aedes() | ||
@@ -175,2 +180,3 @@ var server = net.createServer(instance.handle) | ||
t.plan(1) | ||
var instance = aedes() | ||
@@ -204,2 +210,3 @@ var server = net.createServer(instance.handle) | ||
t.plan(1) | ||
var instance = aedes() | ||
@@ -206,0 +213,0 @@ var server = net.createServer(instance.handle) |
10740
250
50
8