EIO=4 ping handling #611

This commit is contained in:
Links
2021-01-31 10:27:36 +01:00
committed by Markus
parent 900d81e534
commit 0a4fcd44c2
3 changed files with 29 additions and 3 deletions

View File

@ -945,6 +945,9 @@ void WebSocketsClient::handleHBPing() {
if(sendPing()) {
_client.lastPing = millis();
_client.pongReceived = false;
} else {
DEBUG_WEBSOCKETS("[WS-Client] sending HB ping failed\n");
WebSockets::clientDisconnect(&_client, 1000);
}
}
}