if the exception is related to the ws server then yes you will need to instantiate the server again, if it is not related then everything should be fine.
Question is, why would the ws server crash? this shouldn't happen unless you have an issue in the code. So i recommend you find and fix than just catch
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.
if the exception is related to the ws server then yes you will need to instantiate the server again, if it is not related then everything should be fine.
Question is, why would the ws server crash? this shouldn't happen unless you have an issue in the code. So i recommend you find and fix than just catch