trufanov-nok / QtWebSocketsMod

Modified version of QtWebSockets for Qt 5.15

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 access QSslSocket::peerCertificateChain() that is hidden under the hood of QWebSocketPrivate implementation in case QWebSocketServer::SecureMode is used.

Make sure you have qtbase5-private-dev package installed.

Following is the original (except for module name) ReadMe:


Introduction

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.

Features

  • Client and server capable
  • Text and binary sockets
  • Frame-based and message-based signals
  • Strict Unicode checking
  • WSS and proxy support

Requirements

Qt 5.x

Build And Usage

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

Compliance

QtWebSocketsMod is compliant with RFC6455 and has been tested with the Autobahn Testsuite.

Missing Features

  • Extensions and sub-protocols

About

Modified version of QtWebSockets for Qt 5.15

License:GNU General Public License v2.0


Languages

Language:C++ 97.4%Language:QMake 1.0%Language:QML 0.9%Language:C 0.4%Language:CMake 0.1%Language:Shell 0.0%Language:Prolog 0.0%