websocket: Add configurable ping interval

Merges https://github.com/espressif/esp-idf/pull/6399

Signed-off-by: David Cermak <cermak@espressif.com>


* Original commit: espressif/esp-idf@9ff9137e7a
This commit is contained in:
Akihiro YAMAZAKI
2021-01-14 16:30:47 +09:00
committed by gabsuren
parent cf697a1a1b
commit 1933367f63
2 changed files with 10 additions and 2 deletions

View File

@ -99,6 +99,7 @@ typedef struct {
int keep_alive_idle; /*!< Keep-alive idle time. Default is 5 (second) */
int keep_alive_interval; /*!< Keep-alive interval time. Default is 5 (second) */
int keep_alive_count; /*!< Keep-alive packet retry send count. Default is 3 counts */
size_t ping_interval_sec; /*!< Websocket ping interval, defaults to 10 seconds if not set */
} esp_websocket_client_config_t;
/**