emqx / CocoaMQTT

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

Keep receiving a message that has been consumed #557

Open fanzhoutw opened 8 months ago

fanzhoutw commented 8 months ago

Something wrong happened in the iOS SDK. A message has already been received, but this protocol method has been called on and on, Even though I log in to the account with another iPhone device

func mqtt(_ mqtt: CocoaMQTT, didReceiveMessage message: CocoaMQTTMessage, id: UInt16) 

I'm using the newest version of CocoaMQTT(2.1.8). how do resolve it?

JaylinYu commented 8 months ago

not enough information. plz check if the publish msg is from the broker side

leeway1208 commented 8 months ago

Hello, will this issue happened in the demo? or can you provide us with some codes to check? thanks