swissmanu / harmonyhubjs-client

A Node.JS library which allows you to interact with your Logitech Harmony Hub.
https://github.com/swissmanu/harmonyhubjs-client
MIT License
155 stars 42 forks source link

Timeouts #22

Closed maddox closed 7 years ago

maddox commented 8 years ago

I get timeouts all the time when requesting the list activities with the client. These aren't caught in any ways and makes the client crash immediately.

events.js:154
      throw er; // Unhandled 'error' event
      ^

Error: read ETIMEDOUT
    at exports._errnoException (util.js:856:11)
    at TCP.onread (net.js:550:26)

Hopefully there can be some graceful handling of these inside the client itself.

swissmanu commented 8 years ago

is this related to #8? maybe you can have a look at https://github.com/swissmanu/orchestra-jsapi which has already a keep-alive workaround implemented.

otherwise i would really welcome a mechanism for handling these timeouts.