esphome / ESPAsyncWebServer

Async Web Server for ESP8266 and ESP32
82 stars 62 forks source link

Fix EventSource ::send #1

Closed OttoWinter closed 4 years ago

OttoWinter commented 4 years ago

See also https://github.com/OttoWinter/ESPAsyncTCP/pull/2\#issuecomment-665466505

Sorry for all the whitespace changes, my editor is set up to auto-trim trailing whitespace. The main changes are in AsyncEventSource::send and webSocketSendFrame (when send() fails, the data still got added to the pcb, so don't return 0)

Also increases SEE_MAX_QUEUED_MESSAGES to 32 on ESP8266