mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-13 23:36:30 +02:00
processing client data before potential disconnect
This commit is contained in:
@ -173,11 +173,13 @@ void WebSocketsClient::loop(void) {
|
||||
|
||||
}
|
||||
} else {
|
||||
handleClientData();
|
||||
|
||||
if (_client.status == WSC_CONNECTED){
|
||||
handleHBPing();
|
||||
handleHBTimeout(&_client);
|
||||
}
|
||||
handleClientData();
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@ -726,7 +728,7 @@ void WebSocketsClient::connectedCb() {
|
||||
}
|
||||
|
||||
void WebSocketsClient::connectFailedCb() {
|
||||
DEBUG_WEBSOCKETS("[WS-Client] connection to %s:%u Faild\n", _host.c_str(), _port);
|
||||
DEBUG_WEBSOCKETS("[WS-Client] connection to %s:%u Failed\n", _host.c_str(), _port);
|
||||
}
|
||||
|
||||
#if (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266_ASYNC)
|
||||
|
Reference in New Issue
Block a user