http_server: Add a flag to enable using control frames in user handlers

This commit is contained in:
David Cermak
2020-09-07 16:24:26 +02:00
parent 76ca826758
commit 5e1e5f8be9
5 changed files with 14 additions and 3 deletions

View File

@@ -84,7 +84,8 @@ static const httpd_uri_t ws = {
.method = HTTP_GET,
.handler = ws_handler,
.user_ctx = NULL,
.is_websocket = true
.is_websocket = true,
.handle_ws_control_frames = true
};