Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qwebsocket
    Log in to post

    • UNSOLVED Setting non extractable private key in QWebSocket for mutual TLS on macOS
      General and Desktop • qwebsocket tls • • Dhan18  

      1
      0
      Votes
      1
      Posts
      30
      Views

      No one has replied

    • SOLVED QWebSocket refuses to follow HTTP 301 Redirect
      General and Desktop • qwebsocket redirect • • JustASimpleCoder  

      3
      0
      Votes
      3
      Posts
      222
      Views

      It turned out that nginx was returning 301 while trying to redirect from http to https (it had nothing to do with the endpoint itself thankfully). I changed my websocket URL to "wss://" + url and that seemed to resolve the issue for me. For future readers, if you are still experiencing errors with a Secure WebSocket you may want to adjust the SSL configuration of the QWebSocket. QSslConfiguration sslConfig; sslConfig.setProtocol(whateverProtocolYouDesire); // Set additional properties of sslConfig here... socket->setSslConfiguration(sslConfig);
    • SOLVED do multiple calls to write of QTcpSocket/QWebSocket overwrite previous bytes which are not yet written?
      General and Desktop • qtcpsocket tcp networking qwebsocket • • noone  

      11
      0
      Votes
      11
      Posts
      647
      Views

      after removing the lines:- auto img = QImage::fromData(rawimg); QLabel *myLabel = new QLabel; myLabel->setPixmap(QPixmap::fromImage(img)); myLabel->show(); it works perfectly with more than 20*3 images
    • SOLVED Do I receive complete QByteArray when binaryMessageReceived is emitted?
      General and Desktop • qbytearray tcp networking qwebsocket • • noone  

      4
      0
      Votes
      4
      Posts
      203
      Views

      @JonB Thanks. I didn't know about those links. they look promising. This whole networking stuff is really new to me @Christian-Ehrlicher Thanks. So for large data, I guess QWebSocket::binaryFrameReceived() is the correct way
    • UNSOLVED whats wrong?QWebsocket &QWebSocket::textMessageReceived signal twice reapeat?
      General and Desktop • qwebsocket • • zyqter  

      2
      0
      Votes
      2
      Posts
      241
      Views

      Hi and welcome to devnet, Without any code it's only guess work. By the way, Qt 5.5.1 is really outdated, you should consider updating to 5.12.4 which is the current LTS if not 5.13.
    • UNSOLVED QWebSocket sendTextMessage strange behaviour
      General and Desktop • qwebsocket • • ___..Alex..___  

      4
      0
      Votes
      4
      Posts
      172
      Views

      I don't see such a behavior here with 5.9 nor 5.12 - please provide a minimal example.
    • UNSOLVED QWebSocket and Synchronous Response/Request Cycle
      General and Desktop • threading qwebsocket asynchronous synchronous • • ad7000  

      7
      0
      Votes
      7
      Posts
      1589
      Views

      @jsulm It's alright. I ended up going completely asynchronous by using a chained callback structure. Thanks anyways for the help!
    • SOLVED Problems connection to WSS with QWebSocket
      General and Desktop • error openssl ssl qwebsocket tls • • erazem  

      5
      0
      Votes
      5
      Posts
      3103
      Views

      Ok, thanks for the reply. It pointed me in the correct direction and after many failures I finally figured it out. I guess you only learn when you need to dig deep. The only thing I had to do was install the correct version of openSSL. Since it is my first time I had no idea what the letter actually meant, I picked the first build, which was version g, I had to install version n. For all future wanderers, the only thing you need to do to make the client work is one of the two options: Just copy ssleay32.dll and libeay32.dll to working directory OR Install the latest version and set PATH to the folder where the two dlls are located. After that you can use QWebSocket without even knowing SSL exists. Just call: QWebSocket socket; socket.open( QUrl("someaddress") ); And, when the dlls are found the warnings disappear. That's it.
    • SOLVED QWebsocket signal disconnected and method close unrelated ??
      General and Desktop • websocket qwebsocket close disconnected closecode • • nameAlreadyInUse  

      4
      0
      Votes
      4
      Posts
      1937
      Views

      OK guys i can confirm this is a bug in the Qt5.3 (linux version at least); as the exact same code on Qt5.5 on windows produces the followin output : Message received: "Hello, world!" Close code: 1002 Was already reported btw : [https://bugreports.qt.io/browse/QTBUG-42982](link url)
    • QWebSocket stalling when sending oversized packets to Node.js + ws server
      General and Desktop • qwebsocket node.js • • bobjohnson23  

      1
      0
      Votes
      1
      Posts
      418
      Views

      No one has replied

    • QWebSocketServer stop working after first message
      General and Desktop • qwebsocket qwebsocketserve • • ageblade  

      2
      0
      Votes
      2
      Posts
      1029
      Views

      Ok issue is solved. From my investigation it appears that the QWebSocketServer works properly only when communicating with the main thread. Therefore, any messages sent by other threads will not be received at the other side and the socket server will be corrupted from that moment. In order to fix this issue I actually forced any other thread in my application to send their messages using the main thread. I did it by using QMetaObject::invokeMethod() with Qt:QueuedConnection as the connection type. Hope this can help anyone in the future, Idan