forked from me-no-dev/ESPAsyncWebServer
disable timeout for web sockets and event source
This commit is contained in:
@@ -175,6 +175,7 @@ void AsyncEventSource::onConnect(ArEventHandlerFunction cb){
|
||||
}
|
||||
|
||||
void AsyncEventSource::_addClient(AsyncEventSourceClient * client){
|
||||
client->setRxTimeout(0);
|
||||
/*char * temp = (char *)malloc(2054);
|
||||
if(temp != NULL){
|
||||
memset(temp+1,' ',2048);
|
||||
|
@@ -621,6 +621,7 @@ void AsyncWebSocket::_handleEvent(AsyncWebSocketClient * client, AwsEventType ty
|
||||
}
|
||||
|
||||
void AsyncWebSocket::_addClient(AsyncWebSocketClient * client){
|
||||
client->setRxTimeout(0);
|
||||
if(_clients == NULL){
|
||||
_clients = client;
|
||||
return;
|
||||
|
Reference in New Issue
Block a user