emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.59k stars 418 forks source link

CocoaMQTT.CocoaMQTTError.writeTimeout #436

Open sadeghgoo opened 2 years ago

sadeghgoo commented 2 years ago

Version: 2.0.3-beta2 (CocoaMQTT over websocket.) after subscribing to topics, CocoaMQTT disconnected with the below error: CocoaMQTT.CocoaMQTTError.writeTimeout

sadeghgoo commented 2 years ago

Version: 2.0.3-beta2 (CocoaMQTT over websocket.) after subscribing to topics, CocoaMQTT disconnected with the below error: CocoaMQTT.CocoaMQTTError.writeTimeout

I found what's happened. When you subscribe to multiple topics with subscribe(_:) method then you'll get this error, if you wanna subscribe to multiple topics at once then call subscribe([(String, CocoaMQTTQoS)]) method