Swiftpack.co - swift-server-community/mqtt-nio as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by swift-server-community.
swift-server-community/mqtt-nio 2.8.0
A Swift NIO MQTT v3.1.1 and v5.0 Client
⭐️ 143
🕓 7 weeks ago
iOS macOS watchOS tvOS linux
.package(url: "https://github.com/swift-server-community/mqtt-nio.git", from: "2.8.0")


sswg:sandbox|94x20 Swift 5.8

A Swift NIO based MQTT v3.1.1 and v5.0 client.

MQTT (Message Queuing Telemetry Transport) is a lightweight messaging protocol that was developed by IBM and first released in 1999. It uses the pub/sub pattern and translates messages between devices, servers, and applications. It is commonly used in Internet of things (IoT) technologies.

MQTTNIO is a Swift NIO based implementation of a MQTT client. It supports

  • MQTT versions 3.1.1 and 5.0.
  • Unencrypted and encrypted (via TLS) connections
  • WebSocket connections
  • Posix sockets
  • Apple's Network framework via NIOTransportServices (required for iOS).

You can find documentation for MQTTNIO here. There is also a sample demonstrating the use MQTTNIO in an iOS app found here


Stars: 143
Last commit: 2 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Related Packages

Release Notes

7 weeks ago

Minor release changes

  • Update minimum required Swift version to 5.6.
    • Remove all #if compiler checks for Swift concurrency and Sendable conformance

Patch release changes

  • Fix passing along of the retain flag in the async/await version of MQTTClient.publish.

Other changes

  • Clean up some of the async tests to use task groups instead on unstructured tasks.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics