rikulo / stomp

STOMP Dart Client for communicating with STOMP-compliant messaging servers.
http://rikulo.org
Other
30 stars 24 forks source link

Malformed input and subscribeJson #3

Closed wienczny closed 10 years ago

wienczny commented 10 years ago

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.

tomyeh commented 10 years ago

Fixed in d80a4a47f231f961c03bdaa492eb73be0cb225b5

Please reopen if the problem remains. If no other issue, I'll release a new version later.