From deb87cf5d7cacdbf984e3aa9e647bc98c0e5ebd4 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sat, 23 Aug 2025 19:25:59 +0200 Subject: [PATCH] fix standalone --- lib_standalone/ESPAsyncWebServer.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib_standalone/ESPAsyncWebServer.h b/lib_standalone/ESPAsyncWebServer.h index 9ed4acfe5..69deeb3cd 100644 --- a/lib_standalone/ESPAsyncWebServer.h +++ b/lib_standalone/ESPAsyncWebServer.h @@ -243,6 +243,9 @@ class AsyncWebServer { void on(const char * uri, WebRequestMethodComposite method, ArRequestHandlerFunction onRequest) {}; }; +#ifndef SSE_MAX_QUEUED_MESSAGES +#define SSE_MAX_QUEUED_MESSAGES 32 +#endif class AsyncEventSource : public AsyncWebHandler { public: @@ -252,6 +255,9 @@ class AsyncEventSource : public AsyncWebHandler { size_t count() const { return 1; } + size_t avgPacketsWaiting() const { + return 0; + }; void send(const char * message, const char * event = NULL, uint32_t id = 0, uint32_t reconnect = 0) {}; };