mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-16 08:42:06 +02:00
processing client data before potential disconnect
This commit is contained in:
@ -173,11 +173,13 @@ void WebSocketsClient::loop(void) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
handleClientData();
|
||||||
|
|
||||||
if (_client.status == WSC_CONNECTED){
|
if (_client.status == WSC_CONNECTED){
|
||||||
handleHBPing();
|
handleHBPing();
|
||||||
handleHBTimeout(&_client);
|
handleHBTimeout(&_client);
|
||||||
}
|
}
|
||||||
handleClientData();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -726,7 +728,7 @@ void WebSocketsClient::connectedCb() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void WebSocketsClient::connectFailedCb() {
|
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)
|
#if (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266_ASYNC)
|
||||||
|
Reference in New Issue
Block a user