Re:Show HN: Full Freeciv client running on WebAssembly
by freeciv21 on Sunday January 23, 2022 @09:06AM
(#30046215)
Qt and emscripten took care of the bulk of it. Emscripten turns socket calls into websocket somewhat "transparently". The error handling is slightly different, but it only took minor code changes to get that working. More effort was involved in making the Qt event loop play nicely in the browser. Freeciv is based on a server-client model, we host servers that the wasm clients connect to via websockets.
[ Parent
| on HN ]
Re:Show HN: Full Freeciv client running on WebAssembly
by chii on Sunday January 23, 2022 @09:43AM
(#30046453)
> we host servers that the wasm clients connect to via websockets.
would it be possible to make this completely p2p so that another browser hosts the server and connect to it via webRTC style?