aboutsummaryrefslogtreecommitdiff
path: root/src/network/websocketconnection.h
diff options
context:
space:
mode:
authorOsmium Sorcerer <os@sof.beauty>2026-03-22 18:56:58 +0000
committerOsmium Sorcerer <os@sof.beauty>2026-03-29 22:22:25 +0000
commitd6352bc889638b82a887e0a1a138f2b8086dbbdb (patch)
tree35f7bb8b5b6641f69930bd8485260bc8594e5fe9 /src/network/websocketconnection.h
parenta124f46861d549ddc13485536962e34d80de939a (diff)
Handle extension packets using binary frames
The subprotocol shall use binary frames, and AO protocol stays separated within the text frames.
Diffstat (limited to 'src/network/websocketconnection.h')
-rw-r--r--src/network/websocketconnection.h3
1 files changed, 3 insertions, 0 deletions
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);
};