From d6352bc889638b82a887e0a1a138f2b8086dbbdb Mon Sep 17 00:00:00 2001 From: Osmium Sorcerer Date: Sun, 22 Mar 2026 18:56:58 +0000 Subject: Handle extension packets using binary frames The subprotocol shall use binary frames, and AO protocol stays separated within the text frames. --- src/network/websocketconnection.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/network/websocketconnection.h') diff --git a/src/network/websocketconnection.h b/src/network/websocketconnection.h index 9d9f7d0..1f5a842 100644 --- a/src/network/websocketconnection.h +++ b/src/network/websocketconnection.h @@ -23,6 +23,7 @@ public: void disconnectFromServer(); void sendPacket(AOPacket packet); + void sendExMessage(const QByteArray &msg); Q_SIGNALS: void connectedToServer(); @@ -30,6 +31,7 @@ Q_SIGNALS: void errorOccurred(QString error); void receivedPacket(AOPacket packet); + void receivedExMessage(QByteArray msg); private: AOApplication *ao_app; @@ -41,4 +43,5 @@ private Q_SLOTS: void onError(); void onStateChanged(QAbstractSocket::SocketState state); void onTextMessageReceived(QString message); + void onBinaryMessageReceived(QByteArray message); }; -- cgit