Function esp_idf_sys::httpd_ws_send_frame
source ยท pub unsafe extern "C" fn httpd_ws_send_frame(
req: *mut httpd_req_t,
pkt: *mut httpd_ws_frame_t,
) -> esp_err_t
Expand description
@brief Construct and send a WebSocket frame @param[in] req Current request @param[in] pkt 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)