1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-11-27 23:03:16 +00:00

#329 Add clientCount getter

Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
This commit is contained in:
2025-11-26 21:23:15 +01:00
parent 4971f1c7f9
commit c5e5c8323e

View File

@@ -254,6 +254,7 @@ public:
AsyncWebServer* WebServer() {return server;}
AsyncWebSocket* WebSocket() {return ws;}
size_t clientCount() const {return MapOfClients.size();}
#if defined(ESP32)
# if (ESP_IDF_VERSION_MAJOR == 4 && ESP_IDF_VERSION_MINOR >= 4) || ESP_IDF_VERSION_MAJOR > 4