Open isc30 opened 5 years ago
Update:
SDL_net.h
in emscripten includes even tho it appears listed when running emcc --show-ports
). Waiting for this ticketNext steps:
[ ] Try using an older version of POCO that supports WebSockets
[x] Investigate if adding SDL_net.h
manually works
Adding SDL_net.h manually works well, this might be a way of doing this. Problem: SDL2_net doesn't have any websocket layer, so I might need to build it by myself for the server :(
This topic is also being discussed in Corrade repository as it maybe makes sense to create a simple socket abstraction there
Before starting
If POCO is not an option, then
Rely on SDL2_NET with TCP and implement websocket entrypoint (or use websocketify) A nice wrapper can be used too https://github.com/mwthinker/Network
Interesting resources for SDL_net