Are Qt Remote Objects supported by Webassembly
-
@Martin
i don't think so.
You are only allowed to make requests to the calling host/domain.
Also AFAIK only QWebSocket is supported by QtWebAssembly yet (which uses the internal WebSocket provided by the browser) -
It should work. But it won't out of the box. You need to supply your own QIODevice to QRemoteObjects which must be based on QWebSocket (see addHostSideConnection/addClientSideConnection). Than you could connect to any host bypassing the sandbox. I never tried though. But at least QRO compiles as wasm module.
-
@hgerdau said in Are Qt Remote Objects supported by Webassembly:
Than you could connect to any host bypassing the sandbox.
Thats not how it works, as i said its only allowed to make connections to the host domain
-
@raven-worx said in Are Qt Remote Objects supported by Webassembly:
@hgerdau said in Are Qt Remote Objects supported by Webassembly:
Than you could connect to any host bypassing the sandbox.
Thats not how it works, as i said its only allowed to make connections to the host domain
You are wrong. Same origin is forced only for tcp sockets but not for websockets.
Please google for Same-Origin-Policy (SOP) and websockets.
And by the way I have wasm code running that shows that it works with websockets. -
And by the way I have wasm code running that shows that it works with websockets.
@hgerdau Care to share how you did that? I am trying to develop a forum in QtWebassembly, and I got the simpleswitch working on the desktop client, but not working when its put into WebAssembly.