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. QWebSocket sendTextMessage strange behaviour
QtWS25 Last Chance

QWebSocket sendTextMessage strange behaviour

Scheduled Pinned Locked Moved Unsolved General and Desktop
qwebsocket
4 Posts 3 Posters 502 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.
  • _ Offline
    _ Offline
    ___..Alex..___
    wrote on 11 May 2019, 19:41 last edited by ___..Alex..___ 5 Nov 2019, 19:42
    #1

    Hi,

    I decided to use the QWebSocket for Client/Server communication. When sending a QString through the socket it seems that the socket is not cleaned. The QString on server side is appended with new data. It is exactly the same behaviour like mentioned here https://bugreports.qt.io/browse/QTBUG-55506.
    Is there a workaround? I cannot call clear somewhere (or at least I do not know how...)

    Regards
    Alex

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 May 2019, 20:10 last edited by
      #2

      Hi and welcome to devnet,

      What version of Qt are you using ?

      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
      2
      • _ Offline
        _ Offline
        ___..Alex..___
        wrote on 25 May 2019, 07:55 last edited by
        #3

        Hi,
        sorry for the late reply.
        I'm using 5.12.2 on an AMD Linux machine.

        Regards
        Alex

        1 Reply Last reply
        0
        • C Online
          C Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 25 May 2019, 10:07 last edited by
          #4

          I don't see such a behavior here with 5.9 nor 5.12 - please provide a minimal example.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          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