You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
An error event with no listener crashes the process, contrary to "errors never crash" #44
area: coreTouches core library / runtime source codepriority: mediumShould be addressed in the normal course of developmentstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
The README promised errors never crash the process, but the remote emits error on a Node.js EventEmitter, and Node throws when error is emitted with no listener. A consumer that only listens for connect/key events crashes on the first connection or protocol error. The README now notes that you need an error listener (#41), but the library behaviour is still a trap.
Fix
Only emit error when a listener is attached (listenerCount("error") > 0). Otherwise route it to the debug/log channel, and surface it through the returned promise where an operation is pending. Test that an error with no listener doesn't throw and that one with a listener is delivered. Then remove the README caveat.
area: coreTouches core library / runtime source codepriority: mediumShould be addressed in the normal course of developmentstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected
Activity
cldmv-bot commentedon Oct 4, 2026
Marked
status: implemented— resolved by #46, merged intonext. This issue closes automatically when that work ships to the default branch.release: v2.1.8 - restore npm run setup-device on the v2 remote API
release: v2.1.8 - restore npm run setup-device on the v2 remote API