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

WebAssembly and remote objects module

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
2 Posts 2 Posters 386 Views
  • 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.
  • magrifM Offline
    magrifM Offline
    magrif
    wrote on 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
    • lorn.potterL Offline
      lorn.potterL Offline
      lorn.potter
      wrote on 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

      • Login

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