11#include <QtWebSockets/QWebSocket>
25 virtual ~Node() =
default;
27 const QUrl url()
const {
return m_URL;}
31 void sendResponse(
const QString &command,
bool payload);
33 void sendTextMessage(
const QString &message);
34 void sendBinaryMessage(
const QByteArray &message);
35 bool isConnected()
const {
return m_isConnected;}
39 m_AuthResponse = response;
45 void onTextReceived(
const QString &message);
46 void onBinaryReceived(
const QByteArray &message);
50 void disconnectServer();
55 void onDisconnected();
61 uint16_t m_ReconnectTries {0};
66 bool m_isConnected {
false };
67 bool m_sendBlobs {
true};
72 static const uint16_t RECONNECT_INTERVAL = 5000;
74 static const uint16_t RECONNECT_MAX_TRIES = 720;
76 static const uint16_t THROTTLE_INTERVAL = 1000;
Generic record interfaces and implementations.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:46 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.