RIAEvangelist / node-phidget-API

Node.JS Phidget API supporting all phidgets!
Other
10 stars 7 forks source link

'disconnected' event is not firing #20

Closed MaybeRex closed 9 years ago

MaybeRex commented 9 years ago

'disconnected' is not firing when disconnected

RIAEvangelist commented 9 years ago

The disconnected event does infact fire when disconnecting from the phidget.

The detached event fires when the phidget is detached from the computer as per the phidget spec.

is this not well documented? @MaybeRex and @rajivsavroop

RIAEvangelist commented 9 years ago

When looking at the documentation it seems pretty clear.

Also there are other events as well, the added and removed which work the same as attached and removed.

RTFM on this one?

RIAEvangelist commented 9 years ago

Although I do notice the only time the attached and detached events are fired is on the manager. I'll fix that. Still, disconnected does fire as the documentation states, when the socket is closed or lost.