Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How could I connect to the server by websocket(wss) or https protocol when develop webapp by Qt

How could I connect to the server by websocket(wss) or https protocol when develop webapp by Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 813 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • thamT Offline
    thamT Offline
    tham
    wrote on last edited by tham
    #1

    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.

    JonBJ 1 Reply Last reply
    0
    • thamT tham

      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.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @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.)

      thamT 1 Reply Last reply
      0
      • JonBJ JonB

        @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.)

        thamT Offline
        thamT Offline
        tham
        wrote on last edited by
        #3

        @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.

        JonBJ 1 Reply Last reply
        0
        • thamT tham

          @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.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @tham
          Pardon? I know that. Like I said, QNetworkAccessManager does support SSL, but it has nothing to do with WASM.

          thamT 1 Reply Last reply
          0
          • JonBJ JonB

            @tham
            Pardon? I know that. Like I said, QNetworkAccessManager does support SSL, but it has nothing to do with WASM.

            thamT Offline
            thamT Offline
            tham
            wrote on last edited by
            #5

            @jonb Pardon, I mentioned want it to work for wasm from the beginning.

            1 Reply Last reply
            0
            • lorn.potterL Offline
              lorn.potterL Offline
              lorn.potter
              wrote on last edited by
              #6

              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.

              Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
              Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved