Right now the client-side communicates to the esp32 async rest api via http. I am considering using websockets as they usually have lower latency because the conection is continuous and doesn`t need to be reestablished for every request, but websockets can be more resource intensive because the connection is always maintained, and also require a stable internet connection. ESPAsyncWebServer offers functionality for async websockets.
Right now the client-side communicates to the esp32 async rest api via http. I am considering using websockets as they usually have lower latency because the conection is continuous and doesn`t need to be reestablished for every request, but websockets can be more resource intensive because the connection is always maintained, and also require a stable internet connection. ESPAsyncWebServer offers functionality for async websockets.