vshymanskyy / blynk-library-js

Blynk library for JS. Works with Browsers, Node.js, Espruino.
https://blynk.io/
MIT License
215 stars 67 forks source link

failed intial connection handling #5

Closed tzapu closed 9 years ago

tzapu commented 9 years ago

HI, it seems the lib throws and exception if for instance the port is wrong

12 Oct 18:26:02 - Error: socket hang up at TLSSocket.onHangUp (_tls_wrap.js:959:21) at TLSSocket.g (events.js:199:16) at TLSSocket.emit (events.js:129:20) at _stream_readable.js:908:16 at process._tickCallback (node.js:355:11)

expected behavior would be to fail gracefully with an event

cheers

tzapu commented 9 years ago

added a pull request to sort this https://github.com/vshymanskyy/blynk-library-js/pull/8

vshymanskyy commented 9 years ago

Merged

vshymanskyy commented 9 years ago

pushed to npm