marcelog / Nami

Asterisk manager interface (ami) client for nodejs
http://marcelog.github.com/Nami
Apache License 2.0
99 stars 59 forks source link

Add events for socket connection #9

Closed rooftopsparrow closed 11 years ago

rooftopsparrow commented 11 years ago

The underlying socket that Nami uses sometimes goes stale (timeout, error, etc).

This commit exposes those events to the user using namiConnection and namiConnection(EventName). Also included is the ability to reopen the connection without destroying the listeners the instance already has.

I am still new at creating these pull requests, so thanks for your patience @marcelog.

rooftopsparrow commented 11 years ago

Thanks for your comments @marcelog. I'll edit these up and add a commit for further discussion.

marcelog commented 11 years ago

Hey! Sorry for the delay on this, my bad. And thanks for working on this :)

Cheers!

rooftopsparrow commented 11 years ago

@marcelog Thanks for the merge! I appreciate your time and patience.