Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107979

WebAssembly - callback is missing when WebAssembly module is ready to receive messages from Javascript

XMLWordPrintable

    • WebAssembly
    • a594e95c9 (dev), 665c99b6c (6.5)

      I have a Qt app that I build for WebAssembly.

      The Website that is embedding this WebAssembly module is sending messages to the loaded WebAssembly module via Javascript.

      Previously I used Qt 6.2.2 to build this app.
      I recently update to Qt 6.3.2 to build it.
      Using Qt 6.2.2 version, I could get notified when the loaded WebAssembly module has became ready to receive messages from Javascript.
      I was doing this : 

      function init() {
        var spinner = document.querySelector('#qtspinner');
      ...
      
      
        var qtLoader = QtLoader({
      ...
        });
        qtLoader.loadEmscriptenModule("myModule");
        
        Module.postRun = function() {
            console.log("Ready to send messages...")
        }
      }

      Using this new Qt 6.3.2 version I couldn't find the same.
      The generated qtloader.js is different and it doesn't offer a way to get notified when the app is ready to receive messages from the Javascript side.
      `Module.postRun` is not available any more. The public API have this removed.

      Would it be possible to re-add the ability to be notified when the app (loaded WebAssembly module) is ready to receive messages from the Javascript side?

        For Gerrit Dashboard: QTBUG-107979
        # Subject Branch Project Status CR V

            sorvig Morten Sørvig
            csnt Csaba Szigeti
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes