aboutsummaryrefslogtreecommitdiffstats
path: root/src/webchannel/qwebchannel_p.h
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2014-02-05 17:44:03 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-21 15:59:25 +0100
commit48e814442e6e8507aacd16362b44d5754c059228 (patch)
tree592f3916bf2e5dc18d57a62c3baf1ba0ae2bbf09 /src/webchannel/qwebchannel_p.h
parente3e4d6a18d63537459f0e616360e53e816927f76 (diff)
Send response data only to target client.
Before, the response was sent to all clients in a broad-cast and had to be filtered on the client-side. This required additional client identification data to be added to all requests and responses. Now, we keep track of the transport and transport-internal client and only send the response to that client. This is very benefitial for multi-client setups but also reduces traffic for single-client setups and thus their performance. Change-Id: Ia1ef5e031b0058222083d352a8aa28a7d566a6ca Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/webchannel/qwebchannel_p.h')
-rw-r--r--src/webchannel/qwebchannel_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webchannel/qwebchannel_p.h b/src/webchannel/qwebchannel_p.h
index 954134e..b81640e 100644
--- a/src/webchannel/qwebchannel_p.h
+++ b/src/webchannel/qwebchannel_p.h
@@ -53,12 +53,12 @@ class QJsonValue;
class QWebChannelTransportInterface;
class QMetaObjectPublisher;
+Q_WEBCHANNEL_EXPORT QByteArray generateJSONMessage(const QJsonValue &id, const QJsonValue &data, bool response);
+
struct Q_WEBCHANNEL_EXPORT QWebChannelPrivate
{
QVector<QWebChannelTransportInterface*> transports;
QMetaObjectPublisher *publisher;
-
- void sendJSONMessage(const QJsonValue &id, const QJsonValue &data, bool response) const;
};
QT_END_NAMESPACE