Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benfoxall/mqt
Like mqtt, but more succint
https://github.com/benfoxall/mqt
Last synced: 16 days ago
JSON representation
Like mqtt, but more succint
- Host: GitHub
- URL: https://github.com/benfoxall/mqt
- Owner: benfoxall
- License: mit
- Created: 2017-02-17T15:47:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-07T21:16:01.000Z (almost 8 years ago)
- Last Synced: 2025-01-19T08:31:13.752Z (24 days ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MQT
**This is a hack, you might not want to use it yet**
MQT is like mqtt, but with less stuff going on
```js
const mqt = new MQT('test.mosquitto.org:8080')mqt.subscribe('/foo/+/baz', m => {
console.log(`hello ${m}`)
})mqt.publish('/foo/bar/baz', 'world')
```This is an opinionated wrapper around the [Paho JavaScript client](http://www.eclipse.org/paho/clients/js/) providing a simpler api.
This allows the browser to interact with IoT networks.
## Plans / todo
* connection/auth/client_id options
* Better binary data options
* wss support
* offline/message queuing