I started like this :
//Instancie le client APE
var client = new APE.Client();
//Charge le noyau APE
client.load();
//Intercepte l'événement 'load'. Cet événement est déclenché quand le noyau
est chargé et est prêt à se connecter au serveur APE
client.addEvent('load', function() {
//Appelle la fonction de démarrage du noyau pour se
connecter au serveur APE
var user_id = Cookie.read('id');
client.core.start({"name":user_id});
});
//4) Écoute l'événement «Ready» quand votre client est connecté
client.addEvent('ready', function() {
console.log('Votre client est maintenant connecté');
//1) joint le 'testChannel'
client.core.join('testChannel');
....
});
--
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/