-
Notifications
You must be signed in to change notification settings - Fork 55
Clientapi
Greg edited this page Mar 10, 2014
·
7 revisions
Configuration options are given in ClientConfiguration.
Example:
cloak.configure({
messages: {
bar: function(arg) {
console.log('bar from server');
}
},
serverEvents: {
begin: function() {
console.log('begin');
}
}
});
cloak.run('http://localhost:8090');
Sends a message to the server. The message handler on the server gets called if there is one for this message name.
Returns true or false
Get the unique id of the current user. This is the same value as user.id
on the server.
Disconnect and do not attempt to reconnect.
All documentation on this wiki is licensed under a Creative Commons Attribution 3.0 Unported License. To attribute simply link to this wiki.