# mqtts

> MQTT client in Typescript

Latest version **1.5.0** (published 2021-06-01) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.0 |
| Published | 2021-06-01 |
| First published | 2020-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14.0.0 |
| Dependencies | 7 |
| Unpacked size | 172.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | nerixyz |
| Maintainers | nerix |
| Keywords | MQTT, subscribe, iot, tls |

## Links

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

## Dependencies (7)

- [ws](https://npm.io/package/ws.md) ^7.3.0
- [debug](https://npm.io/package/debug.md) ^4.1.1
- [socks](https://npm.io/package/socks.md) ^2.5.0
- [ts-xor](https://npm.io/package/ts-xor.md) ^1.0.8
- [@types/ws](https://npm.io/package/@types/ws.md) ^7.2.5
- [eventemitter3](https://npm.io/package/eventemitter3.md) ^4.0.4
- [ts-custom-error](https://npm.io/package/ts-custom-error.md) ^3.1.1

## Recent versions

- 1.5.0 (latest) — 2021-06-01
- 1.4.0-beta.4 (beta) — 2021-03-28
- 1.0.0-alpha.3 (alpha) — 2020-11-25
- 1.4.4 — 2021-05-17
- 1.4.3 — 2021-05-17
- 1.4.2 — 2021-05-17
- 1.4.1 — 2021-05-17
- 1.4.0 — 2021-04-28
- 1.4.0-beta.3 — 2021-03-27
- 1.4.0-beta.2 — 2021-03-27
- 1.4.0-beta.1 — 2021-03-26
- 1.4.0-beta.0 — 2021-03-20
- 1.3.2 — 2021-03-18
- 1.3.1 — 2021-03-12
- 1.3.0 — 2021-02-25
- … 25 more at https://npm.io/package/mqtts/versions

## README

# MQTTS (MQTT Typescript)

MQTTS is a MQTT library. It currently supports _MQTT 3.1.1_ but may
support MQTT 5 in the future.

These are the key features:

-   Multiple Transports (**TLS**, **TCP**, more to come)
-   Focus On Extensibility
-   Written in Typescript
-   Parameterized listeners: `devices/:name/color` will also give you any object with the properties:
    `{name: '...'}`

**Check out the [example](examples/example.ts).**

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