1.0.2 • Published 7 years ago

mqt v1.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

MQT

This is a hack, you might not want to use it yet

MQT is like mqtt, but with less stuff going on

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 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