magicmonkey / lifxjs

JS library for LIFX bulbs
MIT License
276 stars 63 forks source link

Client doesn't reconnect after a TCP disconnect #1

Closed magicmonkey closed 10 years ago

magicmonkey commented 10 years ago

The bulbs disconnect the client after a period of inactivity, after which the next command to be sent will crash the client.

dermotos commented 10 years ago

I've found putting the reconnect code in the error rather than end handler to be more reliable.