8000 fix #454 · mathos6147/arduinoWebSockets@0c3b15c · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c3b15c

Browse files
committed
1 parent 784088d commit 0c3b15c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/WebSocketsClient.cpp

Lines changed: 2 additions & 0 deletions
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
@@ -715,6 +716,7 @@ void WebSocketsClient::handleHeader(WSclient_t * client, String * headerLine) {
715716
}
716717
}
717718
sendHeader(client);
719+
#endif
718720
} else {
719721
DEBUG_WEBSOCKETS("[WS-Client][handleHeader] no Websocket connection close.\n");
720722
_lastConnectionFail = millis();

0 commit comments

Comments
 (0)
0