npm.io
0.0.1 • Published 9 years ago

node-mqtt

Licence
ISC
Version
0.0.1
Deps
0
Vulns
0
Weekly
0

node-mqtt

Installation

$ npm install node-mqtt
Example
const mqtt = require('node-mqtt');

const client = mqtt.connect('mqtt://localhost')

client.on('connect', function () {
  client.subscribe('#')
});

client.on('message', function (topic, message) {
  console.log(topic,  message.toString());
});
Contributing
  • Fork this Repo first
  • Clone your Repo
  • Install dependencies by $ npm install
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Publish your local branch, Open a pull request
  • Enjoy hacking <3
ISC

This work is licensed under the ISC license.