Coder Social home page Coder Social logo

Comments (4)

foxriver76 avatar foxriver76 commented on July 21, 2024

You could try the github version from my fork: https://github.com/foxriver76/ioBroker.harmony

The normal behaviour is that it will try to connect again every time the hub is discovered again. But the discovery is implemented in another package. My fork uses newer dependencies, so maybe this bug is fixed.

from iobroker.harmony.

WolfspiritM avatar WolfspiritM commented on July 21, 2024

@foxriver76 Thanks. I think the relevant code is commented out in your fork so it might work better, but I still think that in some cases it might fail.

The reason why it breaks is that the hub stays discovered in my case. The relevent part is:
https://github.com/Pmant/ioBroker.harmony/blob/master/harmony.js#L297

It has a timeout of 5 seconds (I'm not sure what the default is in your fork as timeout is commented out but I assume that there still is a timeout). After that it fails (catched with "could not connect to ...") and just stops the client. The hub itself stays discovered in my case and so it won't try to reconnect at all. I think if the connection fails a setTimeout should start instead of just calling "clientStop", that tries to reconnect a few seconds later.

from iobroker.harmony.

foxriver76 avatar foxriver76 commented on July 21, 2024

Thanks for the explanation -- I will have a closer look at it and will try to fix the problem.

from iobroker.harmony.

foxriver76 avatar foxriver76 commented on July 21, 2024

If the issue still exists with 0.10.0 please reopen @WolfspiritM

from iobroker.harmony.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.