skaarj1989 / mWebSockets

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

onError does not detect network disconnect ATmega328 nano with enc28j60 #50

Closed E3ton closed 3 years ago

E3ton commented 3 years ago

If the network is disconnected, then client.onClose does not work. How do I interceptthis event?

client.onClose([](WebSocket &, const WebSocket::CloseCode, const char *, uint16_t) { _SERIAL.println(F("Disconnected\n")); });

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.