HI pablo,

indeed a callback function is planed for some methods. The second approach you are talking with different callback looks nice!

If you are interested the next generation APE Client is here : https://github.com/efyx/APE-Client-JavaScript/

   * It's a draft for now.
   * Callbacks like you propose is not yet implemented.
   * All comments are welcome

Cheers.

On 06/06/2011 16:39, Pablo Tejada wrote:

I don't know how the new API looks like but better use of callbacks will be nice. If you could do something like this

client.join("movies", function(chanel){
     //just joined channel movies
     ...
})

OR/AND

client.join("movies", {
       joined: function(chanel){
             ...
       },

       userJoin: function(user,chanel){
             ...
       },

       userLeft: function(user,chanel){
             ...
       },

       onMessage: function(msg){
             ...
       },
})

I think something like this would be cleaner and more familiar :) or maybe I've been having too much jQuery lately :)

--
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/


--
Nicolas Trani - Web engineer
Weelya - Improve the web
32 rue du faubourg boutonnet
34090 Montpellier
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