Skip to content

swift-server-community/mqtt-nio

Folders and files

NameName
Last commit message
Last commit date
Jan 29, 2025
Jan 29, 2025
Jan 29, 2025
Jan 29, 2025
Sep 23, 2024
Jan 29, 2025
Jul 9, 2021
Dec 14, 2021
Nov 28, 2023
May 30, 2022
Jan 29, 2025
Nov 12, 2021
Nov 28, 2023
Jan 29, 2025
Nov 21, 2020
Jan 29, 2025
Nov 28, 2023
Nov 12, 2021
Jan 29, 2025

MQTT NIO

sswg:sandbox|94x20 Swift 5.7

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).
  • Unix domain sockets

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