When using subscribeJson a FormatException can occour in stomp_util.dart:39 while parsing malformed Json. Currently the user of the library has to catch this exception. This can only be done arround subscribeJson so the subscription is ended.
My suggestion:
Catch the FormatException in stomp_util.dart and add an error handler to the subscribeJson that notifies the user.
When using subscribeJson a FormatException can occour in stomp_util.dart:39 while parsing malformed Json. Currently the user of the library has to catch this exception. This can only be done arround subscribeJson so the subscription is ended. My suggestion: Catch the FormatException in stomp_util.dart and add an error handler to the subscribeJson that notifies the user.