skaarj1989 / mWebSockets

WebSockets for microcontrollers
https://skaarj1989.github.io/mWebSockets/autobahn-testsuite/servers/
MIT License
108 stars 23 forks source link

Automatically reconnect over WS on ethernet disconnect #34

Closed ivanjermakov closed 3 years ago

ivanjermakov commented 3 years ago

Trying to figure out how to reconnect to WS, when ethernet connection goes down (physical disconnect, server restart, etc.)

skaarj1989 commented 3 years ago

HI @ivanjermakov, You could reconnect in onClose callback, I used something similar here