summaryrefslogtreecommitdiff
path: root/examples/webchannel/nodejs/chatclient.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webchannel/nodejs/chatclient.js')
-rw-r--r--examples/webchannel/nodejs/chatclient.js4
1 files changed, 2 insertions, 2 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();