{Array|string} cmdIf the argument is a string, it should be a CMD (e.g. 'CONNECT'). If the argument is an array: the array should contain objects with cmd, params and sessid)

{object} paramsOptionalThe parameters that must be send with the command

{object} optionsOptionalObject with request options

{boolean} options.sessidOptionalDefault: trueAdd the sessid property to the request

Returns:

{void} The request object

Example

//ape var is a reference to APE instance
//Add two request to the stack
ape.request.stack.add('testCommand', {"param1":"value"});
ape.request.stack.add('anotherCommand', {"param1":"value"});
//Send the stack to APE server
ape.request.stack.send();

This method send the command in the request stack added trough request.stack.add to the APE server.

Returns:

{object} The request object

Example

//ape var is a reference to APE instance
//Add two request to the stack
ape.request.stack.add('testCommand', {"param1":"value"});
ape.request.stack.add('anotherCommand', {"param1":"value"});
//Send the stack to APE server
ape.request.stack.send();