diff --git a/src/AsyncWebSocket.h b/src/AsyncWebSocket.h index d84879334..5062e864a 100644 --- a/src/AsyncWebSocket.h +++ b/src/AsyncWebSocket.h @@ -209,6 +209,12 @@ class AsyncWebSocketClient { //data packets void message(AsyncWebSocketMessage *message){ _queueMessage(message); } bool queueIsFull(); + size_t queueLength() { //added by ewowi + return _messageQueue.length(); + } + size_t queueLen() { //added by ewowi, compatible with https://github.com/mathieucarbou/ESPAsyncWebServer.git + return _messageQueue.length(); + } size_t printf(const char *format, ...) __attribute__ ((format (printf, 2, 3))); #ifndef ESP32