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. QtWebSocket Sample executing
Qt 6.11 is out! See what's new in the release blog

QtWebSocket Sample executing

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 194 Views 1 Watching
  • 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.
  • F Offline
    F Offline
    fa7eme
    wrote on last edited by
    #1

    Hi,
    I am new to websockets topics and I wanted to run Qt's samples which are in the link below to learn and understand of the way 'QtWebSocket' works:
    https://doc.qt.io/qt-5/qtwebsockets-examples.html
    but I don't know how to run this example:
    https://doc.qt.io/qt-5/qtwebsockets-echoserver-example.html
    I made a 'Qwidget' project and another html page like as this example, opened html page and also run my server code but application cannot connect to the server. it says:
    ERROR: undefined
    DISCONNECTED

    1 Reply Last reply
    0
    • HansonH Offline
      HansonH Offline
      Hanson
      wrote on last edited by
      #2

      you can see the html content, find somethings like:" var wsUri = "ws://localhost:1234";",
      and I think maybe to port(1234) is used,you can change the port and try again.

      “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.”
      —— Martin Golding

      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