pub unsafe extern "C" fn esp_transport_ws_poll_connection_closed(
    t: *mut esp_transport_item_t,
    timeout_ms: i32
) -> i32
Expand description

@brief Polls the active connection for termination

This API is typically used by the client to wait for clean connection closure by websocket server

@param t Websocket transport handle @param[in] timeout_ms The timeout milliseconds

@return 0 - no activity on read and error socket descriptor within timeout 1 - Success: either connection terminated by FIN or the most common RST err codes -1 - Failure: Unexpected error code or socket is normally readable