https://github.com/strongloop/strong-pubsub-mqtt
https://github.com/strongloop/strong-pubsub-mqtt
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/strongloop/strong-pubsub-mqtt
- Owner: strongloop
- License: other
- Created: 2015-03-17T20:32:31.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-02-04T22:38:43.000Z (almost 7 years ago)
- Last Synced: 2025-04-07T01:05:40.951Z (10 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 9
- Watchers: 20
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# strong-pubsub-mqtt
**An MQTT `Adapter` for strong-pubsub**
## Installation
```
$ npm install strong-pubsub-mqtt
```
## Use
```js
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');
```