Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.6.1
-
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
- relates to
-
QTBUG-36952 make public interface for QWebSocketDataProcessor
- Reported
-
QTBUG-69999 Make QWebSocket::QWebSocket(QTcpSocket...) public
- Reported
For Gerrit Dashboard: QTBUG-54276 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
126025,13 | Add a function to hand off a tcp socket to the websocket server | dev | qt/qtwebsockets | Status: MERGED | +2 | 0 |