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>
| commit | 48e814442e6e8507aacd16362b44d5754c059228 |
| parent | e3e4d6a18d63537459f0e616360e53e816927f76 |
| author | Milian Wolff <milian.wolff@kdab.com> |
| committer | The Qt Project <gerrit-noreply@qt-project.org> |
| commit time | Fri, 21 Mar 2014 15:59:25 +0100 |
- M src/imports/webchannel/qmlwebviewtransport.cpp
- M src/imports/webchannel/qmlwebviewtransport.h
- M src/webchannel/qmetaobjectpublisher.cpp
- M src/webchannel/qmetaobjectpublisher_p.h
- M src/webchannel/qwebchannel.cpp
- M src/webchannel/qwebchannel.h
- M src/webchannel/qwebchannel.js
- M src/webchannel/qwebchannel_p.h
- M src/webchannel/qwebchanneltransportinterface.h
- M src/webchannel/qwebsockettransport.cpp
- M src/webchannel/qwebsockettransport.h
- M src/webchannel/qwebsockettransport_p.h
- D tests/qml/data/respond.html
- M tests/qml/tst_webchannel.qml
- M tests/webchannel/tst_webchannel.cpp
- M tests/webchannel/tst_webchannel.h