# mqt

> Like mqtt, but more succinct

Latest version **1.0.2** (published 2017-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install mqt
pnpm add mqt
yarn add mqt
bun add mqt
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-03-07 |
| First published | 2017-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ben Foxall |
| Maintainers | benjaminbenben |

## Links

- npm: https://www.npmjs.com/package/mqt
- Repository: https://github.com/benfoxall/mqt
- Homepage: https://github.com/benfoxall/mqt#readme
- Issues: https://github.com/benfoxall/mqt/issues
- npm.io page: https://npm.io/package/mqt

## Recent versions

- 1.0.2 (latest) — 2017-03-07
- 1.0.1 — 2017-02-19
- 1.0.0 — 2017-02-19
- 1.0.0-PRE — 2017-02-17

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

---
_Source: https://npm.io/package/mqt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
