emqx/CocoaMQTT
MQTT 5.0 client library for iOS and macOS written in Swift observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 95
- Release rhythm 95
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 17
- age_days: 4420
- days_rel: 34
- days_push: 33
- n_releases_24m: 8
Adoption not part of the score
1748 stars · 474 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
CocoaMQTT is an MQTT v3.1.1 and v5.0 client library for iOS, macOS, tvOS, and visionOS written in Swift 5. It supports TCP and WebSocket transports via CocoaAsyncSocket and Starscream, and integrates through Swift Package Manager or CocoaPods.
Use cases
- connect an iOS app to an MQTT broker
- subscribe and publish MQTT 5.0 messages from Swift
- add real-time IoT messaging to a macOS app
- use MQTT over WebSockets on Apple platforms
- build a tvOS app that talks to an MQTT broker
- connect Swift apps to broker.emqx.io
When to choose
- you need an MQTT client in Swift for iOS, macOS, tvOS, or visionOS
- you want MQTT 5.0 features like properties and enhanced auth
- you prefer SPM or CocoaPods integration in Xcode projects
When to avoid
- you need an MQTT client for Android or non-Apple platforms
- you want a broker, not a client library
- your project is not written in Swift or Objective-C-compatible code
Facets
library · maturity active
sdk networking message-queue iot mobile-development cross-platform cross-platform mqtt mqtt-client mqtt5 swift-package-manager cocoapods tvos visionos websocket messaging ios macos swift
3 sources
- readme: https://github.com/emqx/CocoaMQTT · fetched 2026-08-28 · 7585cec80877
- homepage: https://www.emqx.com/en · fetched 2026-08-29 · 5410b0219c71
- site_page: https://www.emqx.com/en/pricing · fetched 2026-08-29 · 2b07d8f79861
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| emqx/CocoaMQTT | main | 96 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem