1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-06-20 18:30:19 +00:00

Merge pull request from ChrSchu90/master

Cleanup of disconnected clients
This commit is contained in:
2024-06-03 21:23:12 +02:00
committed by GitHub

@ -449,6 +449,11 @@ void ESPUIClass::onWsEvent(
}
else
{
if(type == WS_EVT_CONNECT)
{
ws->cleanupClients();
}
if (MapOfClients.end() == MapOfClients.find(client->id()))
{
// Serial.println("ESPUIClass::OnWsEvent:Create new client.");