buttplugio / buttplug-js

Buttplug Typescript/Javascript Client Implementation
https://buttplug.io
BSD 3-Clause "New" or "Revised" License
128 stars 18 forks source link

Glitch example doesn't detect devices already connected o the websocket server #133

Closed blackspherefollower closed 5 years ago

blackspherefollower commented 6 years ago

In the Glitch example, the client is created and connected before the listeners are attached. This means that the 'DeviceAdded' message that come from the result of the 'RequestDeviceList' are missed, since there's no handler attached at that point.

qdot commented 5 years ago

Fixed.