feat(websocket): allow using external tcp transport handle

This commit is contained in:
Jackson Ming Hu
2023-05-31 15:52:24 +10:00
parent 2b64e80acd
commit 83ea2876fc
2 changed files with 10 additions and 3 deletions

View File

@ -127,6 +127,7 @@ typedef struct {
int network_timeout_ms; /*!< Abort network operation if it is not completed after this value, in milliseconds (defaults to 10s) */
size_t ping_interval_sec; /*!< Websocket ping interval, defaults to 10 seconds if not set */
struct ifreq *if_name; /*!< The name of interface for data to go through. Use the default interface without setting */
esp_transport_handle_t ext_transport; /*!< External WebSocket tcp_transport handle to the client; or if null, the client will create its own transport handle. */
} esp_websocket_client_config_t;
/**