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

Connection to two mqtt 5.0 brokers fails #446

Closed rafaelnobrekz closed 2 years ago

rafaelnobrekz commented 2 years ago

Hello! Thanks for providing CocoaMQTT - I guess the only native Swift MQTT 5.0 client? Trying to run the sample app against the brokers in https://test.mosquitto.org/ fail - I am able to connect but:

I have also tried with a paho based 5.0 broker and the result is the same. The test broker broker-cn.emqx.io referenced in the sample works fine (apart from a "JSON" message prepending every message when version 5.0 is selected).

rafaelnobrekz commented 2 years ago

I can successfully connect/subscribe/publish on all three servers above from the MQTTX Mac client app

Screen Shot 2022-03-24 at 17 13 40
leeway1208 commented 2 years ago

hi, I will fix it later. I think it is a bug.😄

rafaelnobrekz commented 2 years ago

2.0.3-beta4 fixes the issue! 🎉