mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
http_server: adds support for setting websocket subprotocol
Adds support for setting support subprotocol per websocket URI
This commit is contained in:
@@ -412,6 +412,11 @@ typedef struct httpd_uri {
|
||||
* This is used if a custom processing of the control frames is needed
|
||||
*/
|
||||
bool handle_ws_control_frames;
|
||||
|
||||
/**
|
||||
* Pointer to subprotocol supported by URI
|
||||
*/
|
||||
const char *supported_subprotocol;
|
||||
#endif
|
||||
} httpd_uri_t;
|
||||
|
||||
|
Reference in New Issue
Block a user