Hi,
I have a C++ based application that acts a server and listens for connection on a port passed to it in args. You can say its more like a GDB Server that eventually will run in my browser and listen on a port and my remote GDB client (on another machine) can then connect to it. I am planning to build this application with em++ and use it from my javascript code.
I was able to build my app after various issues but it did not work. Looking at emscripten testsuite, I found some basic socket servers but it seems they rely on running something like WebSockify on the server side to enable the TCP server
stack to receive incoming WebSocket connections. But this requires running an external application...Can't I do all this from within my javascript code that will be running in my browser. My plan was:
I'll build wasm for my server application, My JS code will run this wasm and will also run websockify and then it will listen for connections as it does when I run it natively on my host.
Thanks,
Taimoor