Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. WebAssembly and remote objects module
Forum Updated to NodeBB v4.3 + New Features

WebAssembly and remote objects module

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
2 Posts 2 Posters 394 Views 2 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
    magrif
    wrote on 27 Oct 2020, 19:11 last edited by
    #1

    Hello everyone.
    I have installed Qt 5.15.1 (from Qt Installer) and Emscripten 1.37.
    I try execute next code

        QRemoteObjectHost host;
        qDebug() << host.setHostUrl(QUrl("tcp://127.0.0.1:12121"));
    

    and get fail at console of browser:

    QNativeSocketEngine::initialize unable to inline out-of-band data
    qtloader.js:382 qt.remoteobjects:  Listen failed for URL: QUrl("tcp://127.0.0.1:12121")
    qtloader.js:382 qt.remoteobjects:  QAbstractSocket::UnknownSocketError
    

    Same for QWebSocketServer and QTcpServer

    What is wrong? It's possible to use QtRemoteObject module with WASM?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lorn.potter
      wrote on 28 Oct 2020, 01:41 last edited by
      #2

      WebAssembly as a platform, does not have native support for servers (same as javascript). Emscripten does support using servers via proxy, but that requires a real server.
      As well, Qt WebAssembly does not yet support emscripten tcp proxy as it requires to run main() in a webworker and pass graphical data to the main thread for canvas access.

      Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
      Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

      1 Reply Last reply
      1

      2/2

      28 Oct 2020, 01:41

      • Login

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