Function esp_idf_svc::hal::sys::httpd_ws_send_frame
source ยท pub unsafe extern "C" fn httpd_ws_send_frame(
req: *mut httpd_req,
pkt: *mut httpd_ws_frame,
) -> i32
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)