forked from me-no-dev/ESPAsyncWebServer
Detect if AsyncWebSocketClient can send data to server and add AsyncWebServer::end() (#501)
* added AsyncWebServer::end() * added AsyncWebServer::end() * added bool AsyncWebSocketClient::canSend() * Fix comparison with WS_MAX_QUEUED_MESSAGES * Fix comparison with WS_MAX_QUEUED_MESSAGES
This commit is contained in:
@@ -210,6 +210,8 @@ class AsyncWebSocketClient {
|
||||
void binary(const __FlashStringHelper *data, size_t len);
|
||||
void binary(AsyncWebSocketMessageBuffer *buffer);
|
||||
|
||||
bool canSend() { return _messageQueue.length() < WS_MAX_QUEUED_MESSAGES; }
|
||||
|
||||
//system callbacks (do not call)
|
||||
void _onAck(size_t len, uint32_t time);
|
||||
void _onError(int8_t);
|
||||
|
||||
Reference in New Issue
Block a user