mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2026-01-26 16:52:20 +01:00
SSE: Make SSE_MAX_QUEUED_MESSAGES configurable and renamed public _write => write
This commit is contained in:
@@ -236,7 +236,7 @@ void AsyncEventSourceClient::close(){
|
||||
_client->close();
|
||||
}
|
||||
|
||||
void AsyncEventSourceClient::_write(const char * message, size_t len){
|
||||
void AsyncEventSourceClient::write(const char * message, size_t len){
|
||||
_queueMessage(new AsyncEventSourceMessage(message, len));
|
||||
}
|
||||
|
||||
@@ -344,7 +344,7 @@ void AsyncEventSource::send(
|
||||
AsyncWebLockGuard l(_client_queue_lock);
|
||||
for(const auto &c: _clients){
|
||||
if(c->connected()) {
|
||||
c->_write(ev.c_str(), ev.length());
|
||||
c->write(ev.c_str(), ev.length());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user