eclipse / paho.golang

Go libraries
Other
327 stars 92 forks source link

Add Publish comment detailing PublishResponse usage #256

Closed wic006 closed 3 months ago

wic006 commented 3 months ago

Addresses comment.

This commit adds a comment explaining that the PublishResponse return value from Publish and PublishWithOptions should technically only be used for QOS1+. For QOS0, a default response with ReasonCode=0 (success) is returned.