user
(since 1.0)
An user object
Description
user
The user object is created by ape when an CONNECT command is successful.
You can:
- Set/Get public or privates properties
- Send a raw to the user's pipe
- Add function to the prototype (Ape.user)
Examples
Private properties
/*
* You can set private properties on each user object,
* simply set a javascript property of the user.
*/
Ape.addEvent("adduser", function(user) {
user.foo = "bar";
});
Ape.registerCmd("helloworld", function(params, infos) {
Ape.log(infos.user.foo);
});
User notes
# No comment
Post a note
CollaborAPE to our wiki !
Find the information you need on the APE Official Wiki : Install, Server, JSF, Help...
