Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
-
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
- mentioned in
-
Page Loading...
Gerrit Reviews
For Gerrit Dashboard: QTBUG-129171 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
589038,43 | Add websocket support for mqtt | dev | qt/qtmqtt | Status: NEW | 0 | 0 |
601049,7 | wasm: Enable the mosquitto test broker on Ubuntu and windows | dev | qt/qt5 | Status: NEW | 0 | 0 |
601159,15 | Use VersionClient macro everywhere | dev | qt/qtmqtt | Status: NEW | +2 | 0 |
601407,9 | Replace raw m_transport pointer with std::shared_ptr | dev | qt/qtmqtt | Status: NEW | +2 | 0 |
606219,6 | Add tests for websocket support for mqtt | dev | qt/qtmqtt | Status: NEW | 0 | 0 |
589029,5 | Add qtwebsockets as dependency for qtmqtt | dev | qt/qt5 | Status: MERGED | +2 | 0 |