onCmd
(since )
Intercept outgoing command.
Description
onCmd
Intercept outgoing command.
Arguments passed to the callback function
args
An object containing all data sent to the server.
pipe
If the sent data contain a key named pipe with a correct pubid (e.g : you send data to a channel) the second argument is a pipe object.
Examples
//ape var is a reference to APE instance
ape.addEvent('onCmd', function(args) {
console.log('sending command ', args.cmd);
});
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...
