commit cd1d60ec71836d6c4e9cbfbf344ef9334a22cdc4 by Maurice Kalinowski changed qmqttconnection.cpp and added the following to qmqttclient.cpp:
however, when the mqtt client is used over a custom websocket based on QIODevice (just like in the by Qt provided mqtt websocket example), this doesn't work anymore, because the following code immediately returns true when the iodevice is already open. Because sendControlConnect() doesn't get called, the mqtt client never connects.
Though it might not be the preferred way of solving the problem, the following works:
|For Gerrit Dashboard: QTBUG-66955|
|222708,3||Fix connecting via an already open QIODevice transport||5.11||qt/qtmqtt||Status: MERGED||+2||0|
|231089,1||Fix connecting via an already open QIODevice transport||wip/mqtt5||qt/qtmqtt||Status: ABANDONED||0||0|