buttplugio / buttplug-rs-ffi

FFI from buttplug-rs to Java and other languages
Other
89 stars 22 forks source link

WASM clients can't set up event handlers before connection #28

Closed qdot closed 3 years ago

qdot commented 3 years ago

Due to the connect call now returning a fully formed client, javascript listeners can't set up event handlers before connect, meaning they'll miss device added, disconnect, etc... events.

qdot commented 3 years ago

Fixed in dev. Made the event emitter always throw event execution to the next tick, which means we can create event handlers after connect calls.