mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
fix Websockets send with data > 65535 bytes (#460)
* json websockets: now sending of multiple frames as well es 64bit frame size works. code ideas taken from qtwebsockets * remove debug stuff * remove stl stuff
This commit is contained in:
@@ -89,7 +89,7 @@ public:
|
||||
~JsonClientConnection();
|
||||
|
||||
public slots:
|
||||
void sendMessage(QJsonObject);
|
||||
qint64 sendMessage(QJsonObject);
|
||||
|
||||
signals:
|
||||
///
|
||||
@@ -124,6 +124,12 @@ private:
|
||||
///
|
||||
void handleWebSocketFrame();
|
||||
|
||||
QByteArray getFrameHeader(quint8 opCode, quint64 payloadLength, bool lastFrame);
|
||||
|
||||
qint64 sendMessage_Raw(const char* data, quint64 size);
|
||||
qint64 sendMessage_Raw(QByteArray data);
|
||||
qint64 sendMessage_Websockets(QByteArray &data);
|
||||
|
||||
/// The TCP-Socket that is connected tot the Json-client
|
||||
QTcpSocket * _socket;
|
||||
|
||||
|
Reference in New Issue
Block a user