# Mqttnio

**URL:** <https://forums.swift.org/t/mqttnio/53238>\
**Category:** Pitches\
**Created:** [November 2, 2021, 2:52pm UTC](https://forums.swift.org/t/mqttnio/53238 "2021-11-02T14:52:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam-fowler](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/adam-fowler/32/9266_2.png) [@adam-fowler](https://forums.swift.org/u/adam-fowler)\
**Post date:** [November 2, 2021, 2:52pm UTC](https://forums.swift.org/t/mqttnio/53238/1 "2021-11-02T14:52:47Z")

</div>

I would like to pitch the library [MQTTNIO](https://github.com/adam-fowler/mqtt-nio) for inclusion in the SSWG package list. MQTTNIO is a MQTT client library built on top of Swift NIO.

## Motivation

MQTT is a messaging protocol commonly used for communicating with IoT (Internet of Things) devices. It is a lightweight publish/subscribe message transport designed to have a small code footprint and network bandwidth.

MQTTNIO is a MQTT client built on top of SwiftNIO, that provides full support for both v3.1.1 and v5 of the MQTT protocol. It runs on macOS, iOS and Linux. It supports WebSocket connections and TLS through both NIOSSL and NIOTransportServices.

There are a number of Swift MQTT libraries out there but many are not built on top of SwiftNIO. And many only support one version of the protocol or don’t provide WebSocket or TLS connections. MQTTNIO provides all of these. The library has also recently gained new Swift concurrency APIs.

---

<div class="post-metadata">

**Author:** ![0xTim](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/0xtim/32/27968_2.png) [@0xTim](https://forums.swift.org/u/0xTim)\
**Post date:** [November 2, 2021, 4:03pm UTC](https://forums.swift.org/t/mqttnio/53238/2 "2021-11-02T16:03:35Z")

</div>

+1 from me - this would add a valuable messaging library to the ecosystem

---

<div class="post-metadata">

**Author:** ![FranzBusch](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/franzbusch/32/19447_2.png) [@FranzBusch](https://forums.swift.org/u/FranzBusch)\
**Post date:** [November 2, 2021, 4:05pm UTC](https://forums.swift.org/t/mqttnio/53238/3 "2021-11-02T16:05:29Z")

</div>

+1 from me as well. We are using MqttNio in our iOS app since a couple of weeks and replaced the previous AWS Objective-C implementation with it. Since then we saw a huge stability increase in our Mqtt stack

---

<div class="post-metadata">

**Author:** ![tomerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tomerd/32/3402_2.png) [@tomerd](https://forums.swift.org/u/tomerd)\
**Post date:** [November 2, 2021, 4:54pm UTC](https://forums.swift.org/t/mqttnio/53238/4 "2021-11-02T16:54:34Z")

</div>

👍 from me, MQTT is has been on the SSWG wish list for a while.

---

<div class="post-metadata">

**Author:** ![johannesweiss](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/johannesweiss/32/38183_2.png) [@johannesweiss](https://forums.swift.org/u/johannesweiss)\
**Post date:** [November 2, 2021, 9:08pm UTC](https://forums.swift.org/t/mqttnio/53238/5 "2021-11-02T21:08:39Z")

</div>

+1

---

<div class="post-metadata">

**Author:** ![ktoso](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ktoso/32/44526_2.png) [@ktoso](https://forums.swift.org/u/ktoso)\
**Post date:** [November 3, 2021, 2:00am UTC](https://forums.swift.org/t/mqttnio/53238/6 "2021-11-03T02:00:20Z")

</div>

Awesome! MQTT is an important standard, happy to endorse that. 🙂

+1

---

<div class="post-metadata">

**Author:** ![adam-fowler](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/adam-fowler/32/9266_2.png) [@adam-fowler](https://forums.swift.org/u/adam-fowler)\
**Post date:** [November 3, 2021, 7:00am UTC](https://forums.swift.org/t/mqttnio/53238/7 "2021-11-03T07:00:15Z")

</div>

@FranzBusch I’m happy we managed to get past the signing issue. Great to hear it is working out for you.
