However, in the meantime, I wrote a pure Lua version that seems to do the trick. I tried to follow the conventions of the ESP8266 library. https://github.com/chilipeppr/esp32-lua-libraries/blob/master/esp32_websocket.lua
What if we just go with more of a Lua based approach to extending this firmware? Make all these core libraries just be available via Lua code, rather than writing them in C and trying to compile lots of different versions of the firmware? Moreover, why not do an "npm install" type approach to libraries of Lua code like the way node.js does it? It seems like many of the libraries people are craving could be done at the Lua layer, rather than at the C code layer inside the compiled firmware. Websockets seem to be a good example.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
What if we just go with more of a Lua based approach to extending this firmware? Make all these core libraries just be available via Lua code, rather than writing them in C and trying to compile lots of different versions of the firmware? Moreover, why not do an "npm install" type approach to libraries of Lua code like the way node.js does it? It seems like many of the libraries people are craving could be done at the Lua layer, rather than at the C code layer inside the compiled firmware. Websockets seem to be a good example.