Awesome.

Thank you :)

Le 12/06/2011 22:27, Pablo a écrit :
ApePubSub is a JS object that wraps the current APE 1.1 JavaScript client API into a more traditional
Pub/Sub style. This is not a stand alone APE JS client.

The script was written for personal use while testing and developing various sample applications for the APE server. I took the time to write some inline commented samples and im sharing it hoping someone else
would find it useful.

The ApePubSub is written in the jQuery($) namespace thought jQuery is not required.
Note: The samples do use jQuery though.

The script will work with a standard APE Installation

Simple Browser console app code:

$.Ape.debug = false;
$.Ape.sub("music", function(channel){
console.log("Just joined Music");
channel.when("onMessage",function(msg){
conole.log("Message: " + msg);
})
})

To publish a message just use pub:
$.Ape.pub("Hello World");

or pick any channel you are subscribed to

$.Ape.channel("ChannelName").pub("Hello World 2");

Download: http://crusthq.com/projects/ApePubSub.zip
--
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/

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