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

Implement websocket support for mqtt

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.9
    • None
    • Examples and Demos
    • None
    • WebAssembly
    • 153ac6480 (dev)

    Description

      Implement websocket support for mqtt. Currently mqtt does not work for webassembly since neither QTcpSocket, nor QSslSocket works for webassembly.

      There is a workaround spreading around that can be used, but it is better to actually have the workaround together with the mqtt code.

      The fix is to take the existing workaround and package it with mqtt, in a binary compatible way.

      While earlier it was necessary to create a QIODevice together with the required boilerplate code, it is now sufficient to do:

      QMqttClient::connectToHostWebSocket[Encrypted]

      mqtt itself is a publish/subscribe message protocol used by distributed systems. Some of our distributed examples for instance, like the outrun demo, uses this.

       

      The implementation is done by creating two QIODevices that can be used for websockets and secure websockets.

      Attachments

        Issue Links

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

          Activity

            People

              evenandersen Even Oscar Andersen
              evenandersen Even Oscar Andersen
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are 5 open Gerrit changes