ws_client: added subprotocol configuration option to websocket client

closes https://github.com/espressif/esp-idf/issues/3893


* Original commit: espressif/esp-idf@de6ea396f1
This commit is contained in:
David Cermak
2019-08-22 22:00:41 +02:00
committed by gabsuren
parent 67949f94f4
commit 2553d65e64
2 changed files with 14 additions and 10 deletions

View File

@ -91,6 +91,7 @@ typedef struct {
int buffer_size; /*!< Websocket buffer size */
const char *cert_pem; /*!< SSL Certification, PEM format as string, if the client requires to verify server */
esp_websocket_transport_t transport; /*!< Websocket transport type, see `esp_websocket_transport_t */
char *subprotocol; /*!< Websocket subprotocol */
} esp_websocket_client_config_t;
/**