mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(http_server): improve websocket server handling
1. Adds post handshake callback 2. Removes requirement to handle HTTP_GET message in websocket handler Closes https://github.com/espressif/esp-idf/issues/18215
This commit is contained in:
@@ -72,4 +72,13 @@ menu "HTTP Server"
|
||||
Enable this option to use WebSocket pre-handshake callback. This will allow the server to register
|
||||
a callback function that will be called before the WebSocket handshake is processed i.e. before switching
|
||||
to the WebSocket protocol.
|
||||
|
||||
config HTTPD_WS_POST_HANDSHAKE_CB_SUPPORT
|
||||
bool "WebSocket post-handshake callback support"
|
||||
default n
|
||||
depends on HTTPD_WS_SUPPORT
|
||||
help
|
||||
Enable this option to use WebSocket post-handshake callback. This will allow the server to register
|
||||
a callback function that will be called after the WebSocket handshake is processed i.e. after switching
|
||||
to the WebSocket protocol.
|
||||
endmenu
|
||||
|
||||
Reference in New Issue
Block a user