NoSuchMethodError: method not found
Opened this issue · 2 comments
dariowskii commented
shamblett commented
Yes you are correct, the destroy method is used only on the Socket class. The mqtt_client package does not call destroy during disconnect in the web build. I'll update this package accordingly.
shamblett commented
OK, the real fix for this from the mqtt_client package is a rather involved refactoring of the connection handling classes to use generics rather than rely on dynamic typing. This is too large of a change for me to implement and test at the moment.
However, I understand that this is somewhat of a pain so for now I've patched the package to trap the OnNoSuchMethod exception if it is raised and call client.close().
Package re released at version 4.5.3, please try this out.