You are reading a single comment by @allObjects and its replies. Click here to read the full conversation.
  • I'd always put retry invocations to and/or within self into a setTimeout() in order to 'loose' context... and let resources go... yes, it may be in a callback, but still, code-connected things/references keep things a-life and resources blocked...

  • Thanks, I'll give that a try

  • Yeah, I forgot that Javascript functions are closures, so even with the async callback it's still a recursive function :-/ @Frida's setTimeout, but as a setInterval, to keep retrying until boola gets set instead of invoking lan from the connect callback (same problem IIUC, please explain if I don't!), and also letting the webide load MQTT for me (I originally was using telnet directly).

About

Avatar for allObjects @allObjects started