mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-12 17:31:07 +00:00

1. If the user wants authenticate the request, then user needs to do this before upgrading the protocol to websocket. 2. To achieve this, added pre_handshake_callack, which will execute before handshake, i.e. before switching protocol.
13 lines
440 B
Plaintext
13 lines
440 B
Plaintext
menu "Example Configuration"
|
|
|
|
config EXAMPLE_ENABLE_WS_PRE_HANDSHAKE_CB
|
|
bool "Enable WebSocket pre-handshake callback"
|
|
select HTTPD_WS_PRE_HANDSHAKE_CB_SUPPORT
|
|
default y
|
|
help
|
|
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.
|
|
|
|
endmenu
|