mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-16 08:42:06 +02:00
Merge branch 'gpn19' into socketio
This commit is contained in:
@ -190,8 +190,11 @@ void WebSocketsClient::loop(void) {
|
|||||||
DEBUG_WEBSOCKETS("[WS-Client] creating Network class failed!");
|
DEBUG_WEBSOCKETS("[WS-Client] creating Network class failed!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#if defined(ESP32)
|
||||||
|
if(_client.tcp->connect(_host.c_str(), _port, WEBSOCKETS_TCP_TIMEOUT)) {
|
||||||
|
#else
|
||||||
if(_client.tcp->connect(_host.c_str(), _port)) {
|
if(_client.tcp->connect(_host.c_str(), _port)) {
|
||||||
|
#endif
|
||||||
connectedCb();
|
connectedCb();
|
||||||
_lastConnectionFail = 0;
|
_lastConnectionFail = 0;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user