strongloop / strong-pubsub-mqtt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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');

About

License:Other


Languages

Language:JavaScript 100.0%