Wrt fatal errors - what would that actually mean? Since most of the socket handling is done on idle, if there's an error we can't really do much.
But definitely, if there is no error handler we should at least print the error message. Maybe jsiQueueEvents (or whatever it's called) can return false if no callbacks were found (if it doesn't already).
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Sounds like a good plan!
Wrt fatal errors - what would that actually mean? Since most of the socket handling is done on idle, if there's an error we can't really do much.
But definitely, if there is no error handler we should at least print the error message. Maybe
jsiQueueEvents
(or whatever it's called) can returnfalse
if no callbacks were found (if it doesn't already).