ws_client: added subprotocol configuration option to websocket client

closes https://github.com/espressif/esp-idf/issues/3893
This commit is contained in:
David Cermak
2019-08-22 22:00:41 +02:00
parent b529c6f282
commit 1a8e5a40d6
2 changed files with 14 additions and 10 deletions

View File

@@ -92,6 +92,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;
/**