Hi,

i just pushed some change on the JSF to github. I did a small change to 
the API to make it more coherent.

Here is what I changed :

== onCmd change ==

in onCmd the pipe is no longer the first argument, but the second, the 
first is the data sent to APE server. This change was made to comply 
with onRaw arguments.

What onCmd look's like before

client.onCmd('send', function(pipe, data) {
    console.log('sending message on pipe', pipe.getPubid(), 'data : ', 
data);
});

What onCmd look's like now :

client.onCmd('send', function(data, pipe) {//Notice pipe is now the 
second argument
    console.log('sending message on pipe', pipe.getPubid(), 'data : ', 
data);
});

== request.send (add) ==

Removing sessid argument from request.send (or add). Sessid is now given 
as an options. By default sessid is added.

What request.send was before this update :
core.request.send('CMD_NAME', {'args1': 'value1'}, false); //send a 
command without sessid

Example (without sessid) :
core.request.send('CMD_NAME', {'args1': 'value1'}, {'sessid': false}); 
//send a command without sessid

Example (with sessid) :
core.request.send('CMD_NAME', {'args1': 'value1'}); //send a command 
with sessid

Sorry for the inconvenience. Have fun with your APE :)

-- 
Nicolas Trani - R&D Web engineer
Weelya - Improve the web
http://www.weelya.com
http://www.ape-project.org

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to