// Copyright (C) 2016 Kurt Pattyn . // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause #ifndef SSLECHOCLIENT_H #define SSLECHOCLIENT_H #include #include #include #include #include #include QT_FORWARD_DECLARE_CLASS(QWebSocket) class SslEchoClient : public QObject { Q_OBJECT public: explicit SslEchoClient(const QUrl &url, QObject *parent = nullptr); private Q_SLOTS: void onConnected(); void onTextMessageReceived(QString message); void onSslErrors(const QList &errors); private: QWebSocket m_webSocket; }; #endif // SSLECHOCLIENT_H