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

Implement websocket support for mqtt

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.9, 6.10.0 FF
    • None
    • Examples and Demos
    • None
    • WebAssembly
    • 153ac6480 (dev), 6224b4be9 (dev), 24f5eceea (dev), dec643fc6 (dev), 967c70f1d (dev), 8316766ce (dev), d0d7897ed (tqtc/dev)

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes