diff options
author | Kirill Burtsev <kirill.burtsev@qt.io> | 2019-11-01 12:42:11 +0100 |
---|---|---|
committer | Kirill Burtsev <kirill.burtsev@qt.io> | 2019-11-20 10:49:00 +0100 |
commit | b19e610e7de40815fd15e5398ad69ec69d05c41b (patch) | |
tree | 56a70b7b8febaacfea8662e3db7e7c6d9afe963e | |
parent | cb7f660a931efacce5c149c194b63071593f1d34 (diff) | |
download | qtwebchannel-b19e610e7de40815fd15e5398ad69ec69d05c41b.tar.gz |
Examples: fix 'nodejs' and 'qwclient' compatibility with 'standalone'
Amends split of classes from 13294ce605
Fixes: QTBUG-75221
Change-Id: I9491fc59a76974c7a9e4784526ac8c2ba729edd7
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
-rw-r--r-- | examples/webchannel/nodejs/chatclient.js | 4 | ||||
-rwxr-xr-x | examples/webchannel/qwclient/qwclient.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/webchannel/nodejs/chatclient.js b/examples/webchannel/nodejs/chatclient.js index 76b620c..6d231a2 100644 --- a/examples/webchannel/nodejs/chatclient.js +++ b/examples/webchannel/nodejs/chatclient.js @@ -85,7 +85,7 @@ var createWebChannel = function(transport, rlif) { // i.e. the server wants to 'send text'. // This can be confusing, as we connect to the signal // to receive incoming messages on our side - channel.objects.dialog.sendText.connect(function(message) { + channel.objects.core.sendText.connect(function(message) { process.stdout.cursorTo(0); process.stdout.clearLine(0); console.log(' << ' + message); @@ -107,7 +107,7 @@ var createWebChannel = function(transport, rlif) { // is called with our message. // Again the naming is for the server side, // i.e. the slot is used _by the server_ to receive text. - channel.objects.dialog.receiveText(l); + channel.objects.core.receiveText(l); console.log(' >> ' + l); } rlif.prompt(); diff --git a/examples/webchannel/qwclient/qwclient.js b/examples/webchannel/qwclient/qwclient.js index fa8cbf7..cd277f1 100755 --- a/examples/webchannel/qwclient/qwclient.js +++ b/examples/webchannel/qwclient/qwclient.js @@ -141,7 +141,7 @@ var welcome = function() { console.log('Use openChannel(url) to connect to a service.'); console.log('For the standalone example, just openChannel() should suffice.'); console.log('Opened channels have their objects aliased to c<channel number>, i.e. c0'); - console.log('So for the standalone example try: c0.dialog.receiveText(\'hello world\')'); + console.log('So for the standalone example try: c0.core.receiveText(\'hello world\')'); } welcome(); |