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. MQTT disconnects in WebAssembly
Forum Updated to NodeBB v4.3 + New Features

MQTT disconnects in WebAssembly

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
3 Posts 2 Posters 840 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.
  • monettesM Offline
    monettesM Offline
    monettes
    wrote on last edited by
    #1

    Hi, I've been able to use QMQTT in my code using a secure web socket connection (wss) with my AmazonMQ server. Everything works perfectly on Windows, Mac and WebAssembly. Or almost perfect. If I run the app in Desktop mode, the websocket connection works perfectly with no disconnects at all. But if I run the same code in WebAssembly using Google Chrome browser, the code works perfectly except I get a lot of WebSocket disconnections. Why do I get so many MQTT disconnections in WebAssembly and not in the Desktop version of the same app?

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Espoo
      wrote on last edited by
      #2

      I hava similar problems, i use qt 6.4, https://forum.qt.io/topic/142409/the-websocket-connection-to-the-mqtt-server-stops-working-after-placing-the-application-on-the-github-server/3 , how you run wss under webassebly, I have problem with openssl library :/

      monettesM 1 Reply Last reply
      0
      • monettesM monettes has marked this topic as solved on
      • E Espoo

        I hava similar problems, i use qt 6.4, https://forum.qt.io/topic/142409/the-websocket-connection-to-the-mqtt-server-stops-working-after-placing-the-application-on-the-github-server/3 , how you run wss under webassebly, I have problem with openssl library :/

        monettesM Offline
        monettesM Offline
        monettes
        wrote on last edited by
        #3

        @Espoo I modified my websocket code using the sample from Qt and upgraded to 6.4.2. MQTT works fine now in WASM.

        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