Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved wss doesn't work with QWebSocket in QT 5.4.2

    General and Desktop
    2
    7
    1914
    Loading More Posts
    • 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.
    • R
      RonW last edited by

      Hi there,

      We have an app built with QT 5.4.2. We are planning to add websocket client support to the app.

      So we started by testing the QWebSocket client sample code, i.e. sslechoclient, with wss://echo.websocket.org. (Free echo test server.)

      We found wss doesn't work with QT 5.4.2, and there's no any additional information in the console. We also tested the latest QT 5.8 with the same sample code, wss works fine.

      Does anyone know about this issue? Is this something we can workaround with QT5.4.2 or we have to upgrade to a newer version QT?

      Btw, ws://echo.websocket.org works fine with both QT 5.4.2 and QT 5.8.

      Regards,
      Ron

      1 Reply Last reply Reply Quote 0
      • R
        RonW last edited by

        Oh, forgot to mention, the development environment is Windows 7.

        And btw, for QT 5.4.2, we do have the corresponding version (1.0.1j) of openssl dll in PATH, our own app already relies on it. So openssl should not be a problem. On the other hand, we didn't do any particular setting for QT 5.8.

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi and welcome to devnet,

          You would need to check the logs from that module to see what happened there as to why things are working correctly now. It might also be related to a change in qtbase.

          In any case, 5.4.2 is already pretty old. If you need long term support you should move to 5.6 or even more recent.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply Reply Quote 0
          • R
            RonW last edited by

            Thanks @SGaist !

            We use the prebuilt QT libraries. Is there an interface to turn on the logging for a QT module? Under our configuration, we don't see any log from QWebSocket at least in the debug console.

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              Yes, there QLoggingCategory for that.

              You need to lookup for the matching terms in the module sources.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply Reply Quote 0
              • R
                RonW last edited by

                Got it.

                However qtwebsockets doesn't seem like define any logging category.

                https://github.com/qt/qtwebsockets/search?utf8=✓&q=Q_LOGGING_CATEGORY&type=

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  Then you'll have to compile the module yourself to check what is done differently.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post