The processing thread needs to handle exceptions so it can survive the occurrence of an error when processing a message. The listener interface should probably also gain a "on_error" method that allows the library user to get notified when decoding a message fails for some reason.
The processing thread needs to handle exceptions so it can survive the occurrence of an error when processing a message. The listener interface should probably also gain a "on_error" method that allows the library user to get notified when decoding a message fails for some reason.