Skip to content

Commit

Permalink
docs(websocket): improve API's header notes
Browse files Browse the repository at this point in the history
  • Loading branch information
suren-gabrielyan-espressif committed Sep 8, 2023
1 parent 13b29c2 commit 3b4532d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ esp_err_t esp_websocket_client_set_uri(esp_websocket_client_handle_t client, con
* @brief Set additional websocket headers for the client, when performing this behavior, the headers will replace the old ones
* @pre Must stop the WebSocket client before set headers if the client has been connected
*
* Notes:
* - To set multiple headers, you can concatenate them in a single line using the "\r\n" symbol.
* Example: websocket_cfg.headers="Sec-WebSocket-Key: my_key\r\nPassword: my_pass";
*
* @param[in] client The client
* @param headers additional header strings each terminated with \r\n
*
Expand Down

0 comments on commit 3b4532d

Please sign in to comment.