mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
e983042af2
This commit adds the WebSocket support for esp_http_server library. It mainly does: - Handling WebSocket handshake - Parsing HTTP upgrade request - Reply the upgrade request - Receive WebSocket packets - Parse header, decode to a struct - Unmask payload (if required) - Send WebSocket frames - Receive WebSocket frame - Automatic control frame handling Merges https://github.com/espressif/esp-idf/pull/4306 Closes https://github.com/espressif/esp-idf/issues/4819
12 lines
554 B
CMake
12 lines
554 B
CMake
idf_component_register(SRCS "src/httpd_main.c"
|
|
"src/httpd_parse.c"
|
|
"src/httpd_sess.c"
|
|
"src/httpd_txrx.c"
|
|
"src/httpd_uri.c"
|
|
"src/httpd_ws.c"
|
|
"src/util/ctrl_sock.c"
|
|
INCLUDE_DIRS "include"
|
|
PRIV_INCLUDE_DIRS "src/port/esp32" "src/util"
|
|
REQUIRES nghttp # for http_parser.h
|
|
PRIV_REQUIRES lwip mbedtls esp_timer)
|