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. WebSocket Services
Forum Update on Monday, May 27th 2025

WebSocket Services

Scheduled Pinned Locked Moved Unsolved General and Desktop
qwebsocketserve
4 Posts 3 Posters 1.1k 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.
  • P Offline
    P Offline
    Pyromanci
    wrote on last edited by
    #1

    I have a project i'm currently looking at migrating over to QT for easier cross OS compatibility. Currently it uses Visual C++.

    It's in part a web socket server and it uses "services". Now when I've been trying to look through the Qt Documentation and examples, but do not see anything like it.

    Does QT not support this part of the RFC or am I just blind and can't see it?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      If you mean this definition: https://www.w3.org/TR/2004/NOTE-ws-gloss-20040211/#webservice

      Qt can manage XML and JSON natively for SOAP you can use KD SOAP

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      1
      • P Offline
        P Offline
        Pyromanci
        wrote on last edited by
        #3

        No that is not what i meant.
        I'm more use to create an objects that acts as a Server end points for the Websocket Server. So you would then make a connection to:

        ws://localhost:4000/endpoint1
        ws://localhost:4000/endpoint2
        ws://localhost:4000/endpoint3

        And so on. In side the Visual C++ I have something along these lines

        WebsocketServer server;
        server.registerService(new SomeEndPointClass1, "endpoint1");
        server.registerService(new SomeEndPointClass2, "endpoint2");
        server.registerService(new SomeEndPointClass3, "endpoint3");
        

        Then the individual class/object would take handle the communication and the Websocketserver is just there to route the incoming packets to the Endpoint.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          danyright
          wrote on last edited by danyright
          #4

          Then you must be looking for the QWebSocketServer & QWebSocket classes.

          You will find some example projects in QtCreator directly if you search for "websocket" (or directly in the documentation).

          D

          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