Function esp_idf_sys::httpd_ws_send_frame_async

source ยท
pub unsafe extern "C" fn httpd_ws_send_frame_async(
    hd: httpd_handle_t,
    fd: c_int,
    frame: *mut httpd_ws_frame_t,
) -> esp_err_t
Expand description

@brief 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.

@param[in] hd Server instance data @param[in] fd Socket descriptor for sending data @param[in] frame WebSocket frame @return

  • 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)