8000 fix #454 · samuko-things/arduinoWebSockets@7a41608 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a41608

Browse files
committed
1 parent 784088d commit 7a41608

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/WebSocketsClient.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ void WebSocketsClient::handleHeader(WSclient_t * client, String * headerLine) {
706706
headerDone(client);
707707

708708
runCbEvent(WStype_CONNECTED, (uint8_t *)client->cUrl.c_str(), client->cUrl.length());
709+
#if(WEBSOCKETS_NETWORK_TYPE != NETWORK_ESP8266_ASYNC)
709710
} else if(clientIsConnected(client) && client->isSocketIO && client->cSessionId.length() > 0) {
710711
if(_client.tcp->available()) {
711712
// read not needed data
@@ -714,7 +715,8 @@ void WebSocketsClient::handleHeader(WSclient_t * client, String * headerLine) {
714715
_client.tcp->read();
715716
}
716717
}
717-
sendHeader(client);
718+
#endif
719+
sendHeader(client);
718720
} else {
719721
DEBUG_WEBSOCKETS("[WS-Client][handleHeader] no Websocket connection close.\n");
720722
_lastConnectionFail = millis();

0 commit comments

Comments
 (0)
0