Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevinnovak/mqtt-example
MQTT.js in Browser with Mosca Broker
https://github.com/kevinnovak/mqtt-example
boilerplate example mosca mosca-broker mqtt mqtt-broker mqtt-client mqtt-server mqttjs
Last synced: about 1 month ago
JSON representation
MQTT.js in Browser with Mosca Broker
- Host: GitHub
- URL: https://github.com/kevinnovak/mqtt-example
- Owner: KevinNovak
- License: mit
- Created: 2018-03-28T02:20:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-04T02:57:20.000Z (almost 7 years ago)
- Last Synced: 2024-11-03T21:25:40.829Z (3 months ago)
- Topics: boilerplate, example, mosca, mosca-broker, mqtt, mqtt-broker, mqtt-client, mqtt-server, mqttjs
- Language: JavaScript
- Size: 64.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MQTT.js / Mosca Example
### MQTT.js in Browser with Mosca BrokerDidn't see many examples around so decided to put this out there.
Includes 2 examples:
1. **Embedded**
* Mosca broker runs alongside an express application, as a single executable node app
* Run using `node app.js`
2. **Standalone**
* Mosca broker and express application run in separate node applications
* Run using `node app.js` for the express application inside the `UI` directory
* Run using `node server.js` for the mosca broker inside the `Broker` directory## References
* [MQTT.js](https://www.npmjs.com/package/mqtt)
* [Mosca](https://www.npmjs.com/package/mosca)
* [MQTT over WebSockets](https://github.com/mcollina/mosca/wiki/MQTT-over-Websockets)