http_server: adds support for setting websocket subprotocol

Adds support for setting support subprotocol per websocket URI
This commit is contained in:
Marius Vikhammer
2020-10-10 16:08:55 +08:00
committed by bot
parent 2d636cc58e
commit dcb09bac6a
4 changed files with 98 additions and 5 deletions

View File

@@ -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;