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

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

XMLWordPrintable

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

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes