sendResponse
(since 1.0)
Send a response to a command.
Description
sendResponse
(
string name, object data )
You can send a response in registerHookCmd and registerCmd. This is useful if you want to assign a callback to a command in client-side.
Parameters
name
The raw name
data
An object that will be JSON encoded and sent with the raw.
Examples
Ape.registerCmd("foocmd", true, function(params, infos) {
infos.sendResponse('custom_raw', {'foo':'bar'});
});
User notes
Post a note
CollaborAPE to our wiki !
Find the information you need on the APE Official Wiki : Install, Server, JSF, Help...

Other methods of sending a response includes pipe.sendRaw however server doesn't set the 'chl' automatically for them