How to send HTML page from a Web Server asynchronously in ESP-IDF?

is it possible to send the HTML page from a Web Server in async mode upon initial client request?
tried that and all i get in the browser is the raw HTML script
maybe I am using the wrong function :
esp_err_t httpd_ws_send_data_async(httpd_handle_t handle, int socket, httpd_ws_frame_t *frame,transfer_complete_cb callback, void *arg);
Solution
In the ESP-IDF's HTTP server component, the httpd_start() function sets up both a listening TCP socket for handling HTTP traffic and a control UDP socket for internal control signals. However, for serving HTTP responses, including HTML pages, you typically interact with the HTTP request and response structure provided by the server rather than directly managing sockets @te0
Was this page helpful?