WebAssembly support #338
-
Hi, I am currently working on a desktop QML application (Qt 5.15.0) and we were thinking to port it in web too using WebAssembly technology. But since we have some limitations due to sandbox nature of WebAssembly, an alternative solution for us it could be a REST API that cutelyst provides. So, do you know if it's possible to use cutelyst in a WASM application? And what about some security limitations of WebAssembly reported like this one QTBUG-76350 ? Do they affect cutelyst compatibility with Qt WebAssembly? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There is no point in using cutelyst IN a WASM application, why would you want to listen as a server on the client's browser? |
Beta Was this translation helpful? Give feedback.
There is no point in using cutelyst IN a WASM application, why would you want to listen as a server on the client's browser?
The limitation you pointed is about using RAW sockets with SSL, but calling an external REST API with HTTPS works just fine.
Cutelyst in WA should be the server part where you issue you HTTPS request and it works like if was PHP/JAVA/nodejs, with the advantage that it's Qt code that usually the one writing Qt desktop/WA/mobile app understand.
A side note is that it seems WA doesn't work with self signed certs, but I don't know the details just that a friend had this issue, which might not be an issue for you, I myself use WA with a cutelyst server using a valid cert…