Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Are Qt Remote Objects supported by Webassembly

Are Qt Remote Objects supported by Webassembly

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 1.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Martin
    wrote on last edited by
    #1

    Hi

    Are there some experiences? Where are the limitations?
    best
    Martin

    raven-worxR 1 Reply Last reply
    0
    • M Martin

      Hi

      Are there some experiences? Where are the limitations?
      best
      Martin

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @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)

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • H Offline
        H Offline
        hgerdau
        wrote on last edited by
        #3

        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.

        raven-worxR 1 Reply Last reply
        0
        • H hgerdau

          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.

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by raven-worx
          #4

          @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

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          H 1 Reply Last reply
          0
          • raven-worxR raven-worx

            @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

            H Offline
            H Offline
            hgerdau
            wrote on last edited by
            #5

            @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.

            F 1 Reply Last reply
            0
            • H hgerdau

              @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.

              F Offline
              F Offline
              FrogCastOrg
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved