8000 esp32 no hasClient function · Quanghoster/arduinoWebSockets@4c1c537 · GitHub
[go: up one dir, main page]

10000 Skip to content

Commit 4c1c537

Browse files
author
Silver Kuusik
authored
esp32 no hasClient function
1 parent dbabc10 commit 4c1c537

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/WebSocketsServer.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,6 @@ void WebSocketsServer::handleNewClients(void) {
589589

590590
#if (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266)
591591
while(_server->hasClient()) {
592-
#elif (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP32)
593-
while(_server->available()) {
594592
#endif
595593
bool ok = false;
596594

@@ -621,8 +619,9 @@ void WebSocketsServer::handleNewClients(void) {
621619

622620
#if (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266) || (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP32)
623621
delay(0);
624-
#endif
625622
}
623+
#endif
624+
626625
}
627626

628627

0 commit comments

Comments
 (0)
0