This is a fork of QtWebSockets
Qt-module.
- obtained with
git clone -b 5.15 https://code.qt.io/cgit/qt/qtwebsockets.git
- renamed to
QtWebSocketsMod
with Search'n'Replace. - A new method
QWebSocket::peerCertificateChain()
has been added to accessQSslSocket::peerCertificateChain()
that is hidden under the hood ofQWebSocketPrivate
implementation in caseQWebSocketServer::SecureMode
is used.
Make sure you have qtbase5-private-dev
package installed.
Following is the original (except for module name) ReadMe:
QtWebSocketsMod
is a pure Qt implementation of WebSockets - both client and server.
It is implemented as a Qt add-on module, that can easily be embedded into existing Qt projects. It has no other dependencies than Qt.
- Client and server capable
- Text and binary sockets
- Frame-based and message-based signals
- Strict Unicode checking
- WSS and proxy support
Qt 5.x
Checkout the source code from code.qt.io Go into the source directory and execute:
qmake
make
make install
The last command will install QtWebSocketsMod
as a Qt module.
To use, add websockets
to the QT variable.
QT += websockets
QtWebSocketsMod
is compliant with RFC6455 and has been tested with the Autobahn Testsuite.
- Extensions and sub-protocols