CocoaMQTT 2.4.1 is a maintenance release for the 2.x line.
Changes
- Fixed WebSocket connect timeout handling so a pending connection is closed after the configured timeout.
- Added
CocoaMQTTError.connectTimeoutfor explicit timeout reporting. - Invalidated stale timeout callbacks across reconnects and connection reuse.
Compatibility notes
CocoaMQTTError.connectTimeoutis a deliberate breaking API change. Exhaustive switches overCocoaMQTTErrormust handle the new case.- A non-positive WebSocket connect timeout continues to mean no timeout.
See the 2.x maintenance policy for the LTS scope and support lifetime.