Merge "Update chat for new calling conventions"
diff --git a/clients/web/js/channel.js b/clients/web/js/channel.js
index 3f02e73..d069336 100644
--- a/clients/web/js/channel.js
+++ b/clients/web/js/channel.js
@@ -80,7 +80,7 @@
};
// openAuthorizer allows RPCs from all clients.
- var openAuthorizer = function(){ return null; };
+ var openAuthorizer = function(secCall, cb){ cb(null); };
var options = {authorizer: openAuthorizer};
var that = this;
diff --git a/clients/web/js/chat/vdl/index.js b/clients/web/js/chat/vdl/index.js
index f8309f0..487230f 100644
--- a/clients/web/js/chat/vdl/index.js
+++ b/clients/web/js/chat/vdl/index.js
@@ -29,27 +29,27 @@
// Services:
-
-
+
+
function Chat(){}
module.exports.Chat = Chat
-
-
+
+
Chat.prototype.sendMessage = function(ctx, text) {
throw new Error('Method SendMessage not implemented');
};
-
-
+
+
Chat.prototype._serviceDescription = {
name: 'Chat',
pkgPath: 'chat/vdl',
doc: "",
embeds: [],
methods: [
-
-
+
+
{
name: 'SendMessage',
doc: "// SendMessage sends a message to a user.",
@@ -64,11 +64,6 @@
outStream: null,
tags: []
},
-
+
]
};
-
-
-
-
-