alexandrainst / processing_websockets

A web socket library, including both server and client, for Processing
MIT License
91 stars 36 forks source link

How to handle on Error(ConnectException: Connection refused) #29

Open carstenheisterkamp opened 1 year ago

carstenheisterkamp commented 1 year ago

Many thanks for providing this library! I have the following issue: when I start a prcessing sketch and the server is not running, it throws the above exception and the sketch crashes. I use nodejs as a websocket server and sending and rceiving works well. How can I handle the exception, so that at least the sketch does not crash?

Alkarex commented 1 year ago

Hello and sorry for the delay, We do not have anyone maintaining this library at the moment https://github.com/alexandrainst/processing_websockets/issues/27 so volunteers welcome!

janihorvath commented 11 months ago

Hello @Alkarex ,

I have the same problem. If the server is up and running then it is all good, but in case it is terminated, the Processing sketch crashes. I've tried try-catch method, but does not work. Do you think there'll be any fix for this? Are there any volunteers? Unfortunately I'm not in the league to help.