httpd_ws_send_frame_async() function
Low level send of a WebSocket frame out of the scope of current request using internally configured httpd send function This API should rarely be called directly, with an exception of asynchronous send using httpd_queue_work.
Arguments
fd
Socket descriptor for sending data
Return value
- ESP_OK : On successful - ESP_FAIL : When socket errors occurs - ESP_ERR_INVALID_STATE : Handshake was already done beforehand - ESP_ERR_INVALID_ARG : Argument is invalid (null or non-WebSocket)
![]()
esp_err_t httpd_ws_send_frame_async(httpd_handle_t hd, int fd, httpd_ws_frame_t *frame);
httpd_ws_send_frame_async() is called by 2 functions and calls 4 functions:
![]()
httpd_ws_send_frame_async()
httpd_ws_send_frame_async() reads 11 variables:
![]()
httpd_ws_send_frame_async()