-
I am struggling to understand the way errors are handled in the context of implementing an MQTT server. In the session example, there is a limited use of Lines 23 to 29 in f463864 I understand there are three main areas where errors generated by custom implementation code can happen (maybe more):
What will happen when my code hands back It would be great to get some help in understanding this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
in v5 you can return negative ack for publish message, so TryFrom gives you this ability, you can generate whatever PublishAck you need. if you cannot handle error and need to disconnect connection |
Beta Was this translation helpful? Give feedback.
in v5 you can return negative ack for publish message, so TryFrom gives you this ability, you can generate whatever PublishAck you need. if you cannot handle error and need to disconnect connection
you don't convert error and return it, in that case dispatcher calls your
control
service withControlMessage::Error
message, and you can create proper Disconnect message