callbacks.begin_request = begin_request_handler;
callbacks.websocket_ready = websocket_ready_handler;
callbacks.websocket_data = websocket_data_handler;
begin_request_handler works great but when I try to open a websocket connection I'm not able to handle it, so I get a Javascript error.
Looking in the code I've seen it is possible to detect and handle a websocket request with these functions:
static int is_websocket_request(const struct mg_connection *conn)
static void handle_websocket_request(struct mg_connection *conn)
Problem is that they are not "public", so I cannot access them from my Qt application.
I can copy-paste the code into my Qt app, but I'm wondering if there's a proper way to handle websocket handshake when begin_request callback is set.
Thank you very much in advance !
Massimo