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. Websockets client api in Qt (C++)
Forum Update on Monday, May 27th 2025

Websockets client api in Qt (C++)

Scheduled Pinned Locked Moved General and Desktop
10 Posts 5 Posters 9.9k 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.
  • 2 Offline
    2 Offline
    2beers
    wrote on 23 Nov 2011, 23:38 last edited by
    #1

    Hi everyone. Is there a websockets client library or an api implementation done in Qt. I'm not interested in using webkit. I'm just asking if there is a C++/Qt implementation or if we can expect one in future versions.

    Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mohsen
      wrote on 25 Nov 2011, 07:43 last edited by
      #2

      what do you mean by websockets client? do you want to access web content? it's already possible with QTCPSocket.

      1 Reply Last reply
      0
      • 2 Offline
        2 Offline
        2beers
        wrote on 25 Nov 2011, 08:17 last edited by
        #3

        oh. sorry. Websockets is a new protocol for sending/receiving real-time data in browsers(html5 browsers). More info in "wikipedia":http://en.wikipedia.org/wiki/WebSocket

        [quote author="mohsen" date="1322207021"]what do you mean by websockets client? do you want to access web content? it's already possible with QTCPSocket.[/quote]

        1 Reply Last reply
        0
        • G Offline
          G Offline
          gadlim
          wrote on 18 Feb 2012, 20:27 last edited by
          #4

          There's a websocket server project "here":http://gitorious.org/qtwebsocket.
          Perhaps it can be used as a starting point for a client, but of course it's tempting to use QtWebkit to implement the client side (much easier).

          1 Reply Last reply
          0
          • 2 Offline
            2 Offline
            2beers
            wrote on 18 Feb 2012, 20:47 last edited by
            #5

            [quote author="gadlim" date="1329596839"]There's a websocket server project "here":http://gitorious.org/qtwebsocket.
            Perhaps it can be used as a starting point for a client, but of course it's tempting to use QtWebkit to implement the client side (much easier).
            [/quote]

            Thanks. I've already knew about that... much easier?...probably ... much faste?... probably not
            Specially when you think about mobile devices.

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nvcnvn
              wrote on 5 May 2012, 14:32 last edited by
              #6

              Hi 2beers!
              I wonder if you found anything interesting?

              1 Reply Last reply
              0
              • 2 Offline
                2 Offline
                2beers
                wrote on 5 May 2012, 15:41 last edited by
                #7

                [quote author="nvcnvn" date="1336228344"]Hi 2beers!
                I wonder if you found anything interesting?[/quote]

                I've stopped searching. For the moment I've postponed my project. I've talked with the person who is making the qt webkit server and he told me that a client would be a good idea, but time is not on his side for the moment.

                Let us know if you find anything

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  nvcnvn
                  wrote on 6 May 2012, 01:28 last edited by
                  #8

                  I have found websocket++ http://www.zaphoyd.com/websocketpp wich support the client (not event try - but I think it will work).

                  If there is a native Qt client that support signal and slot will be great.

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kurt.pattyn
                    wrote on 6 Aug 2013, 06:08 last edited by
                    #9

                    I have just open-source a Qt websockets implementation (both client and server). See: "QWebSockets":https://github.com/KurtPattyn/QWebSockets

                    The implementation has been unit tested against the AutoBahn test suite, and it is faster than all browsers currently around.

                    Currently, there is no support for WSS and extensions.

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kurt.pattyn
                      wrote on 2 Feb 2014, 13:48 last edited by
                      #10

                      The project is moved to the official Qt project, and is about to be included in Qt 5.3. It can be found at https://qt.gitorious.org/qt/qtwebsockets.
                      [quote author="KurtPattyn" date="1375769291"]I have just open-source a Qt websockets implementation (both client and server). See: "QWebSockets":https://github.com/KurtPattyn/QWebSockets

                      The implementation has been unit tested against the AutoBahn test suite, and it is faster than all browsers currently around.

                      Currently, there is no support for WSS and extensions.[/quote]

                      1 Reply Last reply
                      0

                      • Login

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