Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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