I'm using an ESP32 with IDF and I want to develop a websocket client using mongoose. I simply copied the mongoose.c and mongoose.h files to my build tree and after some reading I managed to create a working websocket client that connects to normal websockets (ws).
However, when I want to connect to secure websockets (wss) I can't make it work. I understood that I need to use the mg_connect_ws_opt function with the SSL options, but I still didn't figure out how to enable SSL and how to use configure the options structure.
Can someone help me solve this puzzle?