asterisk / node-ari-client

Node.js client for ARI. This library is best effort with limited support.
Other
253 stars 99 forks source link

client.connect() does not throw exception on no connection #35

Closed woopstar closed 6 years ago

woopstar commented 8 years ago

When using client.connect() to connect to a Asterisk server (v 13.6.0), the client.connec() command does not throw an exception, emit any event nor do anything when it cannot connect to the server. This makes it impossible to detect if the client is actually connected or not

samuelg commented 8 years ago

12 is an attempt at handling this. I'll see if I can quickly fix the merge conflicts this week and merge it in.

danjenkins commented 8 years ago

Would this also deal with being able to connect to the host but a timeout occurs?