These are chat archives for Links2004/arduinoWebSockets

4th
Nov 2018
TKaluza
@TKaluza
Nov 04 12:55

Hi there! Thank you for time and your effort.
I have a general question (newbie) about arduinoWebSockets and ESPAsyncWebServer. I'm using ESP 8266 or ESP 32 modules, and as far as I understand both of them are supported in both libraries.

So my aim is to have a website for controlling the ESP and showing the status and some information on a website. Which is stored as .html or .css in Flash with SPIFFS (which can be done with the SPIFFSEditor.h library , am I wrong?
The provided examples of both library work (one already uses SPIFFS).

I would appreciate if someone could perhaps outline the differences / pro /contra or your opinion about the two libraries, please?

Clemens Kirchgatterer
@everslick
Nov 04 13:03
@TKaluza ESPAsyncWebServer is generally faster (or more snappy so to speak) but needs more care to be taken, because requests run asynchronously to loop(). it needs more RAM as well, which is especially important on ESP8266. on the plus side it has the websockets implementation integrated and does not need an additional socket to listen on (bind to). which might be important or not, depending on your usecase. this is from the top of my head. to be consumed with the usual grain of salt.
TKaluza
@TKaluza
Nov 04 13:23
@everslick Thank you very much for this Information, it is very appreciated!!
Clemens Kirchgatterer
@everslick
Nov 04 14:03
YAW