Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-54276

Make QWebSocket::QWebSocket(QTcpSocket...) accessible

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 5.9.0 Alpha
    • 5.6.1
    • WebSockets
    • None
    • 6ce818a10c5f6fd2314524f5d701e13752e4a662

    Description

      I would like to develop a built-in HTTP server for my Qt application, but I also need WebSockets functionality. Qt's WebSocketServer cannot be integrated into another HTTP server on API level, only by proxying (which would be stupid).

      So I wanted to do the websocket handshake in my HTTP server and then hand over the connection to QWebSocket. Sadly, the needed constructor that takes a QTcpSocket is private.

      It looks as if someone made deliberately made Qt WebSockets as difficult to extend as possible. It only supports a single use case: run a WebSocket-only server or make outgoing connections.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-54276
          # Subject Branch Project Status CR V

          Activity

            People

              aleksey_lysenko Aleksey Lysenko
              lubosd Lubos Dolezel
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes