strong-pubsub-mqtt
v0.1.0
Published
**An MQTT `Adapter` for strong-pubsub**
Downloads
488
Readme
strong-pubsub-mqtt
An MQTT Adapter
for strong-pubsub
Installation
$ npm install strong-pubsub-mqtt
Use
var Client = require('strong-pubsub');
var Adapter = require('strong-pubsub-mqtt');
var client = new Client({host: 'http://my.message-broker.com', port: 3000}, Adapter);
client.publish('my topic', 'my message');