Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

Websockets client api in Qt (C++)



  • 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



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



  • 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]



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



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



  • [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



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



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



  • 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]


Log in to reply