shamblett / mqtt5_client

A server and browser based MQTT 5 client for dart
Other
50 stars 28 forks source link

NoSuchMethodError: method not found #111

Open dariowskii opened 6 days ago

dariowskii commented 6 days ago

In our web build we encountered this error many many times.

Screenshot 2024-09-11 alle 13 04 37

the client variable is dynamic and I think in web the destroy method is not implemented.

shamblett commented 5 days ago

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.