How could I connect to the server by websocket(wss) or https protocol when develop webapp by Qt
-
Qt for webassembly of Qt5.13.1 do not support SSL yet, they treat this issue as P2, that means we may have a long time do not have ssl support at all(another 3 months or a few years?), do you have any suggestions to perform network operations with SSL support?Any recommended libraries and examples?Thanks
ps : It's a bit pointless to have a web app without SSL support.
-
Qt for webassembly of Qt5.13.1 do not support SSL yet, they treat this issue as P2, that means we may have a long time do not have ssl support at all(another 3 months or a few years?), do you have any suggestions to perform network operations with SSL support?Any recommended libraries and examples?Thanks
ps : It's a bit pointless to have a web app without SSL support.
-
@tham
When normally/traditionally you do this via https://doc.qt.io/qt-5/qnetworkaccessmanager.html#details, which will support SSL. Is that what you were looking for? (But that is of course is not from a web browser, but from a native app.)@jonb said in How could I connect to the server by websocket(wss) or https protocol without Qt(wasm build):
@tham
When normally/traditionally you do this via https://doc.qt.io/qt-5/qnetworkaccessmanager.html#details, which will support SSL. Is that what you were looking for?No, because Qt for webassembly do not support ssl yet.
-
@jonb said in How could I connect to the server by websocket(wss) or https protocol without Qt(wasm build):
@tham
When normally/traditionally you do this via https://doc.qt.io/qt-5/qnetworkaccessmanager.html#details, which will support SSL. Is that what you were looking for?No, because Qt for webassembly do not support ssl yet.
-
@tham
Pardon? I know that. Like I said,QNetworkAccessManager
does support SSL, but it has nothing to do with WASM. -
I am currently working on refactoring the QNAM backend for webasembly. As well as QTcpSocket and QtWebSocket rework.
That said, connecting to https should work. The QNAM backend currently uses XMLHttpRequest, which supports https as is without outside ssl support, as long as the serving certificate is good.