From 5051411b92b4aca4ed5ec462e7b0e52af4d3951e Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Wed, 16 Jul 2014 14:33:03 +0200 Subject: Refactor JavaScript QWebChannel to take an external transport object. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This assimilates the JavaScript side to the QML/C++ side. We get rid of the automagic WebSocket code. Instead, users pass in the WebSocket from the outside, if they want to use that for communication. In the QtWebKit/QtWebEngine cases, we will pass in our custom IPC objects. Change-Id: I15e15b5130f99dc8b39dfbfa8cd3d8b2d34dbbc0 Reviewed-by: Allan Sandfeld Jensen Reviewed-by: Lutz Schönemann --- tests/auto/qml/Client.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/qml/Client.qml b/tests/auto/qml/Client.qml index d15fd58..fad1412 100644 --- a/tests/auto/qml/Client.qml +++ b/tests/auto/qml/Client.qml @@ -59,10 +59,9 @@ Item { QtObject { id: clientTransport - property var send; property var onmessage; - function postMessage(message) + function send(message) { if (debug) { console.log("client posts message: ", message); -- cgit v1.2.1